I am trying to send an E-mail to Four(4) people using Outlook. I know that I can add an E-mail by using semicolon “;”. Problem is, the E-mails that I have are stored each on a different variable, obtained from config, Namely: Branch1Email, Branch2Email, Branch3Email, and Branch4Email. I tried formatting it in the “To” part in outlook by. Branch1Email.toString;Branch2Email.toString;Branch3Email.toString;Branch4Email.toString
But it says End of Expression expected
I hope you could help me. Thank you.
Hi,
Can you try the following?
Branch1Email.toString+";"+Branch2Email.toString+";"+Branch3Email.toString+";"+Branch4Email.toString
or
String.Join(";",{Branch1Email.toString,Branch2Email.toString,Branch3Email.toString,Branch4Email.toString})
Regards,
Thanks! Didn’t know that the “;” should be added as a string. It worked now.
1 Like
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.