用smtpmail通过需要认证的smtp服务器发信(C#)MailMessage mail = new MailMessage();
用smtpmail通过需要认证的smtp服务器发信(C#) mail.To 
= "me@163.com";
用smtpmail通过需要认证的smtp服务器发信(C#) mail.From 
= "you@163.com";
用smtpmail通过需要认证的smtp服务器发信(C#) mail.Subject 
= "this is a test email.";
用smtpmail通过需要认证的smtp服务器发信(C#) mail.Body 
= "Some text goes here";
用smtpmail通过需要认证的smtp服务器发信(C#) mail.Fields.Add(
"http://schemas.microsoft.com/cdo/configuration/smtpauthenticate""1"); //basic authentication
用smtpmail通过需要认证的smtp服务器发信(C#)
 mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername""AlleNny"); //set your username here
用smtpmail通过需要认证的smtp服务器发信(C#)
 mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword""Password"); //set your password here
用smtpmail通过需要认证的smtp服务器发信(C#)
 SmtpMail.SmtpServer = "smtp.163.com";  //your real server goes here
用smtpmail通过需要认证的smtp服务器发信(C#)
 SmtpMail.Send( mail );

相关文章:

  • 2021-11-23
  • 2022-12-23
  • 2021-10-24
  • 2021-06-01
  • 2021-11-23
  • 2021-05-17
  • 2021-07-04
  • 2022-12-23
猜你喜欢
  • 2021-11-28
  • 2021-11-14
  • 2021-06-01
  • 2022-01-23
  • 2021-08-20
相关资源
相似解决方案