1

Hello I am using below script to send email from SSIS script task but I can not send email to multiple people. How Can I Specify Credentials for Simple Authentication in SSIS SMTP Connection Manager? It only works for 1 email address but It throws some kind of exception when I put 2 email addresses in my variable which is of string datatype.

EmailRecipient = abc@test.com;abc2@test.com

Please let me know. Thanks.

nick
  • 323
  • 2
  • 14
  • Using the logic in the referenced answer, your script would look something like `foreach(string raddress in EmailRecipient.Split(';')) { message.To.Add(raddress); }` – billinkc Dec 04 '19 at 18:51
  • Thanks a lot. Really appreciate your help. – nick Dec 04 '19 at 19:44

0 Answers0