domodwyer / mailyak

An elegant MIME/SMTP email library with support for attachments

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for CC

jagadishg opened this issue · comments

I see To and BCC fields but no CC. Am I missing something?

commented

Hi @jagadishg,

Just pass more than one address in To():

mail.To("one@example.com", "two@example.com")

Dom

But that will still be two addresses in "To" field, right? How do we specifically set CC so that recipients see their addresses in CC field on their email clients?

commented

Yes that's correct - the end result is the same though, both people get a copy of the email.

If you must populate the CC field, please feel free to open a PR that adds the CC header and I will merge it (with tests please).