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

Also pass Cc and Bcc addresses to the smtp server #23

Closed alexandersgreen closed 5 years ago

alexandersgreen commented 5 years ago

Currently, an encoded mail can contain addresses in all of the To, Cc, and Bcc fields, but only the To addresses are passed to the SMTP server upon send, meaning that the addresses in the Cc and Bcc fields will not be sent the message. I believe the correct thing to do is pass all three lists of addresses to the SMTP server, that way all recipients will be sent a copy of the mail, and the mime encoding of the three fields, within the message itself, will ensure that the receiving email clients will treat them correctly.