Forum Discussion
hkim5
Staff
5 years agoyou will need to make an array of the recipients list, and loop over that list sending the emails to each recipient one by one using the same function.
- mustafayol5 years agoContributor
Hi Justin,
Thanks for the reply. In fact, that's what I already do. But according to documentation, sending to multiple emails by separating commas or semi-columns should also be possible.
let receipents = ["user1@gmail.com", "user2@gmail.com", "user3@gmail.com"];
receipents.forEach(
function sendMultiple(item) {SendMail(item, "smtp.companyhost.com", "FromSenderTester", "senderEmail@company.com", "Subject test email", "Body Test email")};
);
Best regards
Mustafa