Skip to content

Commit

Permalink
Merge pull request #2013 from digitallyinduced/ses-cc-bcc
Browse files Browse the repository at this point in the history
fix ses not sending to cc and bcc recipients
  • Loading branch information
mpscholten authored Nov 19, 2024
2 parents 44d8992 + 365a1e2 commit a30f725
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IHP/Mail.hs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ sendWithMailServer SES { .. } mail = do
manager <- Network.HTTP.Client.newManager Network.HTTP.Client.TLS.tlsManagerSettings
let ses = Mailer.SES {
Mailer.sesFrom = cs $ addressEmail (mailFrom mail),
Mailer.sesTo = map (cs . addressEmail) (mailTo mail),
Mailer.sesTo = map (cs . addressEmail) ((mailTo mail) <> (mailCc mail) <> (mailBcc mail)),
Mailer.sesAccessKey = accessKey,
Mailer.sesSecretKey = secretKey,
Mailer.sesSessionToken = Nothing,
Expand Down

0 comments on commit a30f725

Please sign in to comment.