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);

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 felixhuang 的頭像
    felixhuang

    菲力貓的程式設計

    felixhuang 發表在 痞客邦 留言(0) 人氣()