[C#] C#中使用smtp发送邮件 →→→→→进入此内容的聊天室

来自 , 2020-03-26, 写在 C#, 查看 109 次.
URL http://www.code666.cn/view/04c69065
  1. MailMessage m = new MailMessage
  2.    ("jane@sharejs.com",
  3.     "ben@sharejs.com",
  4.     "This is the subject for the email.",
  5.     "This is the body of the mail!...");
  6.  
  7. // Send the message,请见smpt.sharejs.com替换成你自己的smtp服务器
  8. SmtpClient client = new SmtpClient("smtp.sharejs.com");
  9. client.Send(m);
  10. //csharp/7760

回复 "C#中使用smtp发送邮件"

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

captcha