Authentication 邮箱不可用。服务器响应为:需要身份验证

Authentication 邮箱不可用。服务器响应为:需要身份验证,authentication,smtp,Authentication,Smtp,我想向我的web应用程序的1000多名用户发送邮件。我正在购买新的smtp服务计划。我使用以下代码发送电子邮件 System.Net.Mail.MailMessage message = new System.Net.Mail.MailMessage(); message.From = new MailAddress("info@mydomain.com", "Web Administration Team"); message.To.Add(new MailAddress("user1

我想向我的web应用程序的1000多名用户发送邮件。我正在购买新的smtp服务计划。我使用以下代码发送电子邮件

System.Net.Mail.MailMessage message = new System.Net.Mail.MailMessage();
  message.From = new MailAddress("info@mydomain.com", "Web Administration Team");
  message.To.Add(new MailAddress("user1@gmail.com"));
  message.Subject = "test";
  message.Body = "Email Content";
  message.IsBodyHtml = true;
SmtpClient smtp = new SmtpClient("domain.smtp.com", 2525);           
  smtp.UseDefaultCredentials = false;
  smtp.DeliveryMethod = SmtpDeliveryMethod.Network;            
  smtp.EnableSsl = false;
  smtp.Credentials = new System.Net.NetworkCredential("info@domain.com","password");           
  smtp.Send(message);
但我收到了以下错误消息


邮箱不可用。服务器响应为:需要身份验证。请联系支持部门(support@smtp.com)如果您在成功进行身份验证时遇到问题,SMTP服务器需要用户名和密码进行身份验证,以确保只有客户通过它发送垃圾邮件

有关使用System.Net.Mail时如何进行身份验证的信息,请参阅。

+1中的“确保只有客户发送垃圾邮件”(: