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 to[email protected]
and CCing it to[email protected]
, theheader_to
for[email protected]
will need to be set to[email protected]
- Add the email to the
CC
headers
option incontent
object. If you have multiple emails, these should be comma separated.