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 發表在 痞客邦 留言(0) 人氣()