Adding recipients to Cc: via mail scripts not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2017 01:09 PM
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
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2021 12:09 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2023 11:59 AM
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 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2023 12:00 PM
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 🙂