summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFélix Sipma <felix.sipma@no-log.org>2018-03-14 12:17:13 +0100
committerFélix Sipma <felix.sipma@no-log.org>2018-03-14 12:17:13 +0100
commitd75061f83713c9c56d00549bafe4178c0dea87cd (patch)
tree011f8e23f1d890f30ad412ee895b7533e197b007
parent11db142d27ee7ff2ac73d1899724ba39a4d6475a (diff)
log email recipients
-rw-r--r--src/Shop/Handler.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Shop/Handler.hs b/src/Shop/Handler.hs
index e11af72..c888218 100644
--- a/src/Shop/Handler.hs
+++ b/src/Shop/Handler.hs
@@ -243,6 +243,6 @@ sendCustomMail server port username password msg = do
if authSucceed
then do
liftIO $ sendMail (toS $ addressEmail (mailFrom msg)) (map (toS . addressEmail) (mailTo msg)) (toS rendered) connection
- $(logInfo) $ "Email successfully sent on " <> toS server
+ $(logInfo) $ "Email successfully sent on " <> toS server <> " (recipients: <" <> T.intercalate "> ,<" (map (toS . addressEmail) (mailTo msg)) <> ">)"
else $(logError) $ "SMTP authentication error on " <> toS server
liftIO $ closeSMTP connection