How to taking mail adresses from the mailToList and setting "mail to" smtp mail

Hi guys,

I have a emailadressesList in List(String). I want to taking mail adresses and sending mail to them at the same time. Not one by one.
ex : MailList => list(string)
in MailList, lets say
abc@mail.com
aaa@mail.com
etc.
Mail to : mailList
MailSubject : TEST

How to do “MailTo” side like that?

Thanks.

Hi @Kuki_Force ,

Use this below code in to address property of send smtp activity,
String.Join(";", mailList)
image

This will send email to all of addresses at once.

Hope this helps you :slight_smile:

6 Likes

Hi @Kuki_Force

You can use the String.Join method to concatenate the email addresses in the MailList into a single string, separated by semicolons. Then, you can pass that string as the MailTo parameter in the Send SMTP Mail Message activity.

Regards,
Kaviyarasu N

1 Like

Hey man thx a lot.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.