How to send Email to multiple Recipients with MailMessage?
I have multiple email recipients stored in Sql Server. When I click send in the webpage it should send email to all recipients.I have separated emails using ';'. Following is the single recipient code. MailMessage Msg = new MailMessage(); MailAddress fromMail = new MailAddress(fromEmail); Msg.From = fromMail; Msg.To.Add(new MailAddress(toEmail)); if (ccEmail != "" && bccEmail != "") { Msg.CC.Add(new MailAddress(ccEmail)); Msg.Bcc.Add(new MailAddress(bccEmail)); } SmtpClient a = new SmtpClient("smtp server name"); a.Send(Msg); sreader.Dispose(); Easy! Just split the incoming address list on the