//in web.config
//in cs
using System.Net.Mail;
MailMessage Mail = new MailMessage("mailaddressfrom@smartit.com", "mailaddressto@smartit.com");
Mail.Subject = TextBox2.Text;
Mail.IsBodyHtml = true;
Mail.Body = FCKeditor1.Value;
Mail.Priority = MailPriority.High;
for (int i = 0; i < a.Count; i++)
{
Mail.Bcc.Add(a[i].ToString());
}
SmtpClient smtp = new SmtpClient();
smtp.Send(Mail);
No comments:
Post a Comment