首页 > Web开发 > 详细

WebMail

时间:2014-06-20 21:42:21      阅读:498      评论:0      收藏:0      [点我收藏+]
try {
      WebMail.SmtpServer = "smtp.example.com";
     WebMail.SmtpPort = 587;
     WebMail.EnableSsl = true;
     WebMail.UserName = "mySmtpUsername";
     WebMail.Password = "mySmtpPassword";
     WebMail.From = "rsvps@example.com";
     WebMail.Send("party-host@example.com", "RSVP Notification",
     Model.Name + " is " + ((Model.WillAttend ?? false) ? "" :
     "not")
     + "attending");
} catch (Exception) {
     @:<b>Sorry - we couldnt send the email to confirm your RSVP.
     </b>
}

 

WebMail,布布扣,bubuko.com

WebMail

原文:http://www.cnblogs.com/dotnetmvc/p/3797000.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!