MailAddress to = new MailAddress("mattins@qq.com");
                MailAddress from = new MailAddress("qdream@qq.com");
                MailMessage msg = new MailMessage(from,to);
                msg.Subject = "来自浏览者 "+email+" 的消息";
                msg.Body =content;
                SmtpClient sc = new SmtpClient();
                sc.Credentials = new NetworkCredential("qdream@qq.com","passworld");
                sc.Host = "smtp.qq.com";
                sc.Send(msg);

相关文章:

  • 2021-08-31
  • 2021-11-03
  • 2021-07-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-07
  • 2022-01-04
  • 2021-07-04
  • 2022-01-18
  • 2021-12-26
  • 2021-09-06
  • 2021-07-27
相关资源
相似解决方案