CC in the email notification not working

Shanthi10
Kilo Contributor

I have written  an email script to show a specific email address in CC of emails.

1. I have tried writing gliderecord in the mail script and make the CC in the emails calling the ${mail_script:Add_CC} in notifications

var user = new GlideRecord('sys_user');
user.addQuery("sys_id",'SYS_ID of the user record');
user.query();
while (user.next()) {
email.addAddress('cc', user.email, user.getDisplayValue());

2. I have hard coded the email address and tried adding email address in CC of emails using

email.addAddress("cc", "Email address", "Name");.

Both the results are working for me when I verified in the email logs but when I verified the notifications in outlook, they have received with out setting CC and it is blank.

Need help on how to resolve this issue.

1 ACCEPTED SOLUTION

If you can see the CC to the required email, then SNOW is copying the user in the email.

Check with Microsoft team and see if there is some issue to the users email in receiving emails from ServiceNow


Please mark my response as correct and helpful if it helped solved your question.
-Thanks

View solution in original post

5 REPLIES 5

Shanthi10
Kilo Contributor

Sorry for the late response. It worked. Thank you for the help.