Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

email recipient name in email body .

bala_1312
Tera Contributor

how to get  email recipient name in email body .

6 REPLIES 6

hi @Basheer ,

thanks fo rthese help , i have on more query like - i need to send mail to all user individually , which i am getting from catalog form variables(type list collector) so when i am getting the values its sending mail to everyone at a time , i need to send mail one by one . below is my script ..


var arry = [];
arry = [current.variables.{variable_name}];
for (var i = 0; i <= arry.length; i++) {
gs.eventQueue('{event_name}', current, arry[i]);
}

}

 

please advise

 

Hi @bala_1312 

Let me try to resolve

var listOfEmails = current.variables.variable_name;
var arry = listOfEmails.split(","); //Hope the separator is "," if not then specify the correct separator
for (var i = 0; i <= arry.length; i++) {
gs.eventQueue('{event_name}', current, arry[i]);
}
Please hit like button if my suggestion has helped you in any way.
Please mark correct if my response has solved your query.

Cheers,
Mohammed Basheer Ahmed.