The CreatorCon Call for Content is officially open! Get started here.

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

Is that worked?


Hi Alvatindra,



Here are the Options you need to follow:


Option -1) If you create the event from Business Rule



Use below script format:


gs.eventQueue("<event name>", current, <sys_id of users seperated by Comma>, gs.getUserName());



Option -2)   If you create the event in WF then you need to Put sys_id of users seperated by Comma in Event param 1 or event param 2



Thanks,


Arindam


Community Alums
Not applicable

email.addAddress("cc",current.u_requested_by.email.toString(),current.u_requested_by.name.toString());