Skip to content

Commit

Permalink
fix ses not sending to cc and bcc recipients
Browse files Browse the repository at this point in the history
  • Loading branch information
mpscholten committed Nov 18, 2024
1 parent 8ad0227 commit 365a1e2
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 365a1e2

Please sign in to comment.