diff options
author | Joris | 2016-03-26 12:44:27 +0100 |
---|---|---|
committer | Joris | 2016-03-26 12:44:27 +0100 |
commit | 59c694b0e81deb30ec4e50d5d142b5eda645a27e (patch) | |
tree | 175850ddfe9ace1f50ab6ec11edff094b27da339 /src/server/View/Mail | |
parent | a11ad41b52ed3682d33382f2a378bf3294d688b2 (diff) |
Move no-reply mail from messages to conf
Diffstat (limited to 'src/server/View/Mail')
-rw-r--r-- | src/server/View/Mail/SignIn.hs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/server/View/Mail/SignIn.hs b/src/server/View/Mail/SignIn.hs index dca261d..f776ddd 100644 --- a/src/server/View/Mail/SignIn.hs +++ b/src/server/View/Mail/SignIn.hs @@ -13,10 +13,13 @@ import qualified Model.Mail as M import Model.Message.Key import Model.Message -getMail :: User -> Text -> [Text] -> M.Mail -getMail user url to = +import Conf (Conf) +import qualified Conf as Conf + +getMail :: Conf -> User -> Text -> [Text] -> M.Mail +getMail conf user url to = M.Mail - { M.from = (getMessage NoReplyMail) + { M.from = Conf.noReplyMail conf , M.to = to , M.subject = (getMessage SignInMailTitle) , M.plainBody = plainBody user url |