send email notification to recipients in BCC

Servicenow lear
Tera Contributor

hello All,

We have a requirement where in there are a lot of email addresses in recipient and we would want the receipient addresses move to BCC so that users do not get to know other recipients email addresses.

how to achieve this ?

 

UI action >>event>>notification

 

Servicenowlear_0-1670423192027.png

 

 

6 REPLIES 6

AnubhavRitolia
Mega Sage
Mega Sage

Hi @Servicenow lear 

 

To add Recipient to CC or BCC of the email notification, you need to use Email Script and call it on email notification.

 

Format in email Script to add BCC is as below:

 

email.addAddress("bcc","john.secret@example.com","John Roberts");

 

Reference Link: https://docs.servicenow.com/bundle/quebec-servicenow-platform/page/script/server-scripting/reference...

 

https://docs.servicenow.com/bundle/quebec-servicenow-platform/page/script/server-scripting/reference...

 

 

 

Please mark this as correct answer and helpful if it resolved, or mark this helpful if this help you to reach towards solution.

Thanks
Anubhav Ritolia
ServiceNow Rising Star 2023

I am using event to generate notification.

UI action >>Event>>notification

Event takes care of the list of users to whom email needs to be sent.

Now the email notification shows all the recipients in TO field and we want to hide that hence we want to BCC users

Sebas Di Loreto
Kilo Sage
Kilo Sage

The screen you shared is how an email looks like from the instance mailbox, which is the end result. I get it why you wanted to look over there how they look but in order to achieve what you want you have attack the source of the issue, whether it is an email client or a notification.

For example, I activated the Email function on problem tickets and when you press it the "email client" looks like the second screen that has the bcc field.

 

SebastianDL_0-1670426471508.png

 

 

SebastianDL_1-1670426511059.png

 


If I helped you with your case, please click the Thumb Icon and mark as Correct.


I am using event to generate notification.

UI action >>Event>>notification

Event takes care of the list of users to whom email needs to be sent.

Now the email notification shows all the recipients in "TO" field and we want to hide that hence we want to BCC users