Email

xiaoxiao2021-03-06  19

using System.Web.Mail; public void WebMail (string SendAddress, string MailBody, string MailTitle) {MailMessage mm = new MailMessage (); mm.To = SendAddress; mm.From = "header <*** @ tom.com > "; Mm.subject = mailtitle; mm.bodyformat = mailformat.html; mm.body = mailbody; mm.fields.add (" http://schemas.microsoft.com/cdo/configuration/smtpauthenticate, "1" );

mm.fields.add ("http://schemas.microsoft.com/cdpo/configuration/sendusername", "######");

mm.fields.add ("http://schemas.microsoft.com/cdo/configuration/sendpassword", "####"); SMTPMAIL.SMTPSERVER = "SMTP.TOM.com"; SMTPMAIL.SEND (mm) ;

}

转载请注明原文地址:https://www.9cbs.com/read-56653.html

New Post(0)