using System.Web.Mail;
MailMessage objMail = new MailMessage();
objMail.From = strMailFrom;
objMail.To = strTo;
objMail.Cc = strCC;
objMail.Bcc = strBCC;
objMail.Subject = strSubject;
objMail.Body = strBody;
objMail.BodyFormat = MailFormat.Html;
SmtpMail.SmtpServer = System.Configuration.ConfigurationSettings.AppSettings["SmtpServer"];
SmtpMail.Send(objMail);
全站熱搜
留言列表