62,268
社区成员
发帖
与我相关
我的任务
分享
System.Web.Mail.MailMessage msg = new System.Web.Mail.MailMessage();
msg.From = "eyuanjian@sina.com";
msg.To = "efly135@163.com";
msg.Subject = "sub";
msg.Body = "body";
msg.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1");
msg.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "eyuanjian");
msg.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "usa119");
msg.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpserverport", "25");
msg.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpusessl", "1");
System.Web.Mail.SmtpMail.SmtpServer = "smtp.sina.com";
System.Web.Mail.SmtpMail.Send(msg);