hi,
try this code hope it will workout you
in an click event using you can enter the multiple ids in to address it will send at a time single msg to all emails
using system.net.mail;
protected void Button1_Click(object sender, EventArgs e)
{
MailMessage msg = new MailMessage("aswinialuri@gmail.com", txt1_to.Text);
msg.IsBodyHtml = true;
msg.Subject=txt_sub.Text.ToString();
msg.Body=txt_body.Text.ToString();
NetworkCredential nc = new NetworkCredential("aswinialuri@gmail.com", "@@@@@@@@@@@@");
SmtpClient smtp = new SmtpClient("smtp.gmail.com", 587);
smtp.EnableSsl = true;
smtp.UseDefaultCredentials = false;
smtp.Credentials = nc;
smtp.Send(msg);
}
Mark As answer if it helps you
Thanks& Regards
Mark as Answer if it helps you
Thanks&Regards
Aswini Aluri
Mandlaa, if this helps please login to Mark As Answer. | Alert Moderator