Commit efcfe396 authored by Przemyslaw Kaminski's avatar Przemyslaw Kaminski

[mail] some small refactoring

parent 02ccff83
Pipeline #2596 failed with stage
in 53 minutes and 38 seconds
......@@ -48,7 +48,10 @@ mail mailCfg model = do
(m,u) = email_to model
subject = email_subject model
body = emailWith (view gc_url cfg) model
liftBase $ gargMail mailCfg (GargMail m (Just u) subject body)
liftBase $ gargMail mailCfg (GargMail { gm_to = m
, gm_name = Just u
, gm_subject = subject
, gm_body = body })
------------------------------------------------------------------------
emailWith :: ServerAddress -> MailModel -> Text
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment