jhickner / smtp-mail

Making it easy to send SMTP email from Haskell
BSD 3-Clause "New" or "Revised" License
75 stars 32 forks source link

Remove BCC before sending mail #39

Open spencerjanssen opened 10 months ago

spencerjanssen commented 10 months ago

When testing with Exchange I've found that the Bcc mail header is passed on to all recipients of the email. I'm not sure whether other SMTP servers have the same issue.

The RFCs are a bit murky on this issue, but I did find some support for this approach in RFC 2822:

In the first case, when a message containing a "Bcc:" field is prepared to be sent, the "Bcc:" line is removed even though all of the recipients (including those specified in the "Bcc:" field) are sent a copy of the message