?????? MailMessage Mail = new mailmessage (); ?????? mail.to = greystar@jbinfo.com.cn; ?????? mail.from = "greystar@jbinfo.com.cn ; "; ?????? mail.subject =" test "; ?????? mail.body =" testbody "; ?????? mail.fields.add (" http: // Schemas. Microsoft.com/cdo/configuration/smtpauthenticate "," 1 "); // Basic Authentication ?????? mail.fields.add (" http://schemas.microsoft.com/cdo/configuration/sendusername ", "MY_USERNAME_HERE"); // set your username here ????? mail.fields.add ("http://schemas.microsoft.com/cdo/configuration/sendpassword", "super_secret"); // set your password Here
??? SMTPMAIL.SMTPSERVER = "mail.eqing.org" ;? // your real server goes here ??? SMTPMAIL.SEND (MAIL);