How to set to address in email scripts?

alvatindra
Giga Contributor

Hi,

I need to set the To address using email notification scripts. I am able to set the cc using email.addAdress('cc','email','name') but not to.

How can I achieve this?

12 REPLIES 12

Jaspal Singh
Mega Patron
Mega Patron

Hi Alvatindra,



Kindly refer link How to Add "To" Address in email


Laxmikanth
Tera Expert

Hi,



Please check the below thread which will be helpful


How to Add "To" Address in email


Ankur Bawiskar
Tera Patron
Tera Patron

HI Alvatindra,



I don't think we can set "to" value from notification script. We can set "cc" and "bcc" through script.


Why you want to set "to" from email script.


You can set it from eventQueue() method or from notification itself.



Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.


Thanks


Ankur


Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Hi Ankur,


How to trigger from eventQueue().


I saw the link How to Add "To" Address in email   but not able to understand that link.