Leo108's Blog
  • 首页
  • 版权声明
  • 联系我

email

A collection of 1 post

C#

C#发送email

还是之前的那个监控项目,当目标网站出现异常,或者从异常恢复时,就发一封邮件给网站主人。 需要的库:using System.Net.Mail; MailMessage myMail = new MailMessage(); myMail.From = new MailAddress("leo108@stuhack.com"); //发送email myMail.To.Add(new MailAddress("leo108@stuhack.com"

  • Leo Chen
    Leo Chen
1 min read
Leo108's Blog © 2019
Latest Posts Ghost