blob: 3c5469f3c619456f4761de8aa06dbbf1e0274502 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
module View.Mail.SignIn
( mail
) where
import Data.Text (Text)
import Common.Model (User (..))
import qualified Common.Msg as Msg
import Conf (Conf)
import qualified Conf as Conf
import qualified Model.Mail as M
mail :: Conf -> User -> Text -> [Text] -> M.Mail
mail conf user url to =
M.Mail
{ M.from = Conf.noReplyMail conf
, M.to = to
, M.subject = Msg.get Msg.SignIn_MailTitle
, M.body = Msg.get (Msg.SignIn_MailBody (_user_name user) url)
}
|