The CreatorCon Call for Content is officially open! Get started here.

Adding recipients to Cc: via mail scripts not working

pascalfrencken
Mega Sage

We have a requirement to have watch list members added to the cc: on outgoing notifications. I followed the instructions in paragraph 4.5 of the Scripting for Email Notifications document, and in the script logs I see that the watch list members are correctly retrieved.

However, when the mail is sent out, the entry in the Sent mailbox shows no cc: in the mail headers. Likewise, the watch list members did not receive the email. I even tested it with nothing but the exact script from the above mentioned document, and that didn't work either.

What am I overlooking? How can we get watch list members added to the cc: of email notifications?

Best regards,

Pascal Frencken

7 REPLIES 7

Vishrut
Giga Contributor

Hi Pascal,

I am facing with same issue that I can see "Copied" field being populated, but in Header, I am not able to see "Cc:" field and neither the cc person is able to receive any mail. 

Did you resolved this issue? Please let me know the same.

Thanks & Regards,
Vishrut

HLJames
Tera Contributor

Hi all , 
I had a similar case , although I could not even see the users in the copied column. 
The code below worked for me within the mail_script, specifically adding the toString();

          if (!gs.nil(current.requested_for.email))
		email.addAddress('cc', current.requested_for.email.toString(), current.requested_for.name.toString());

 
👍If this was helpful 🙂

HLJames
Tera Contributor

Hi all , 
I had a similar case , although I could not even see the users in the copied column. 
The code below worked for me within the mail_script, specifically adding the toString();

 

          if (!gs.nil(current.requested_for.email))
		email.addAddress('cc', current.requested_for.email.toString(), current.requested_for.name.toString());

 

 
👍If this was helpful 🙂