SmtpClient smtpClient = new SmtpClient(); MailMessage message = new MailMessage(); try { StringBuilder sb = new BAL.PageContent().EmailList(); MailAddress fromAddress = new MailAddress("info@captorsolutions.com"); message.From = fromAddress;//here you can set address message.To.Add(sb); //here you can add multiple to message.Subject = "Feedback";//subject of email message.CC.Add("cc@site.com");//ccing the same email to other email address message.Bcc.Add(new MailAddress("bcc@site.com"));//here you can add bcc address message.IsBodyHtml = false;//To determine email body is html or not message.Body = @"Plain or HTML Text"; smtpClient.Send(message);
message.To.Add(sb.ToString());
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)