System.Web.Mail.MailMessage  Mailer = new System.Web.Mail.MailMessage();
Mailer.From = "sftsft@sina.com";
Mailer.To = "sftsft@sina.com";
Mailer.Subject ="发送测试";
Mailer.Body= "11111111111111111111111111111";
Mailer.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1");
Mailer.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "xxx");
Mailer.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "xxxx");
SmtpMail.SmtpServer = "smtp.sina.com.cn";
SmtpMail.Send(Mailer);
文章来源:http://www.cnblogs.com/wangdetian168/archive/2008/06/25/1229974.html
posted on 2010-09-28 11:02 sanmao 阅读(113) 评论(0)  编辑  收藏

只有注册用户登录后才能发表评论。


网站导航:
 

常用链接

留言簿(5)

随笔分类

随笔档案

搜索

  •  

最新评论

阅读排行榜

评论排行榜