email.addAddress("cc") is not working

Vidya Shree
Kilo Sage

We are trying to use email.addAddress() method for adding value to CC of email notification.

But it is not working.cc address is neither shown on copied field nor on headers field

When printing the value it is shown correct value

Please find the code below

email.addAddress("cc",current.opened_by.email.toString(), current.opened_by.getDisplayValue());

Thanks In advance

Vidyashree

13 REPLIES 13

The annotation is referring to email client template, which is different than email template.  Client template is used when agents are creating new emails manually.

Email Client Template: sys_email_client_template
Email Template: sysevent_email_template

Sagar Ahire1
Giga Expert

Hi Vidya Shree,

 

Hope the below threads helps you-

Why it does not populate the CC field.

 

Please mark it correct/helpful if helps you.

Thanks,

 

 

Vaishnavi Lathk
Mega Sage
Mega Sage

Hello,

Refer this

https://community.servicenow.com/community?id=community_question&sys_id=6f0d4b69db9cdbc01dcaf3231f96...

 

Regards,

Vaishnavi

 

Please mark as correct or mark as helpful if answer is appropriated. 

Aniko Hegedus
Tera Expert

Hello,

What I've never seen mentioned anywhere is that if you add users to an email with the email.addAddress() method, then you will not see these addresses just by checking the recipients field of the sys_email table. You have to check the XML of the email record, where you'll find the "blind_copied" and "copied" fields.

Aniko