2 Module : Gargantext.Core.Mail
4 Copyright : (c) CNRS, 2017-Present
5 License : AGPL + CECILL v3
6 Maintainer : team@gargantext.org
7 Stability : experimental
12 {-# LANGUAGE OverloadedStrings #-}
14 module Gargantext.Core.Mail
19 import Network.Mail.SMTP hiding (htmlPart)
20 import Gargantext.Prelude
21 import Network.Mail.Mime (plainPart)
24 -- | TODO add parameters
26 gargMail = sendMail "localhost" mail
28 mail = simpleMail from to cc bcc subject [body]
30 from = Address (Just "François Rabelais") "francois.rabelais@gargantext.org"
31 to = [Address (Just "Anoe") "alexandre@localhost"]
34 subject = "email subject"
35 body = plainPart "email body"