How to send mail to multiple recipients without using for loop

How to send mail to multiple recipients without using for loop ?

Hi @Ritaman_Baral

Check this

Regards

Hi @Ritaman_Baral ,

If you have all the recipients in an array or a list or a DataTable. Construct a String with semilcolon as separator. For Eg: abc@gmail.com;xyz@gmail.com.
While appending the mail addresses keep in mind that you should trim the email addresses and the last email doesn’t have a semicolon in it.

Regards,
Aditya

@Ritaman_Baral

How you are getting the multiple recipients? do you have array of recipients then you can directly pass without using For Each loop

Thanks,
Srini

If you have it in list and dont want to use for loop, below is the expression might interest you
string.join(“;”, yourlistvariable)

Let me know if the variable is in some other format

Hi,

Actually in an excel i have a list of mail recipients. I have to send separate mail to each recipients without using for loop!!

@Ritaman_Baral

If you need separate mails for each recipient then you need to have a For Each Row loop

Else if you need all recipients in one email then let me know

Thanks,
Srini