`
shanyou
  • 浏览: 83332 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
最近访客 更多访客>>
文章分类
社区版块
存档分类
最新评论

使用System.Net.Mail通过gmail发送电子邮件

阅读更多
     摘要: gmail的smtp采用了ssl连接:
Outgoing Mail (SMTP) Server - requires TLS: smtp.gmail.com (use authentication)
Use Authentication: Yes
Use STARTTLS: Yes (some clients call this SSL)
Port: 465 or 587

知道了gmail的发信细节,用System.Net.Mail,就是下面这段代码就可以了  阅读全文

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics