[C#] C#中通过SSL发送邮件 →→→→→进入此内容的聊天室

来自 , 2020-08-08, 写在 C#, 查看 124 次.
URL http://www.code666.cn/view/f16ba6f0
  1. MailMessage m = new MailMessage
  2.    ("item@sharejs.com",
  3.     "raja@sharejs.com",
  4.     "This is the subject for the authorized email.",
  5.     "This is the body of the authorized mail!...");
  6.  
  7. // Send the message using authorization
  8. SmtpClient client = new SmtpClient("smtp.sharejs.com");
  9. client.Credentials = new NetworkCredential("user", "password");
  10. client.EnableSsl = true;
  11. client.Send(m);
  12. //csharp/7761

回复 "C#中通过SSL发送邮件"

这儿你可以回复上面这条便签

captcha