Originally I found this which only vaguely pointed me in the right direction, so I thought I'd create a gist of what ended up working for me.
To add a CC address, you have to two two things
- Add the address to your recipeints array, and set the
header_to
value to an address in theto
field. So if you're sending the email toto_address@domain.com
and CCing it tocc_address@domain.com
, theheader_to
forcc_address@domain.com
will need to be set toto_address@domain.com
- Add the email to the
CC
headers
option incontent
object. If you have multiple emails, these should be comma separated.