Email script to set the TO field

ARG645
Tera Guru

Hello All, a simple scripting question.
I am using email methode ' addAddress(String type, String address, String displayname) - type can be "cc" or "bcc" '

in my email script with the help of this method I am able to send "CC" OR "BCC" but

I want to set "TO" address dynamically with the help of e-mail script.

I know we can use events and use event parameter and other wiring to pass the recipients but I would like to Use the email scripts to do something like email.addAddress("to", user.email, user.getDisplayValue());

Please let me know if this is possible. 

1 ACCEPTED SOLUTION

sachin_namjoshi
Kilo Patron
Kilo Patron

We can not set "To" using email script methods. There is no OOB method available to set "To" recipients like CC, BCC

You will have to use event queue mechanism to pass "to" parameters.

 

Regards,

Sachin

View solution in original post

1 REPLY 1

sachin_namjoshi
Kilo Patron
Kilo Patron

We can not set "To" using email script methods. There is no OOB method available to set "To" recipients like CC, BCC

You will have to use event queue mechanism to pass "to" parameters.

 

Regards,

Sachin