.Net使用SmtpClient发送邮件,报错:不允许使用邮箱名称。 服务器响应为: xxxw

{System.Net.Mail.SmtpException: 不允许使用邮箱名称。 服务器响应为:authentication is required,163 smtp10,DsCowAC310MnYjRg06uNmA--.49299S2 1614045736
在 System.Net.Mail.MailCommand.CheckResponse(SmtpStatusCode statusCode, String response)
在 System.Net.Mail.MailCommand.Send(SmtpConnection conn, Byte[] command, MailAddress from, Boolean allowUnicode)
在 System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, Boolean allowUnicode, SmtpFailedRecipientException& exception)
在 System.Net.Mail.SmtpClient.Send(MailMessage message)
在 Govaze.Components.Module.Mail.SendEmailWithFile(aSYSMailServer item, String mailTo, String mailSubject, String mailContent, String UserName, List`1 fileArray) 位置 G:江苏广真KNJDcodeComponentsModuleMail.cs:行号 185}

https://blog.csdn.net/westsource/article/details/8803494

https://blog.csdn.net/helijie92902/article/details/50654870?utm_source=blogxgwz3

开始163邮箱的POP3/SMTP/IMAP服务

c# 发送邮箱时 System.Net.Mail.SmtpException: 事务失败

解决办法是因为在测试的收件人一直填写的都是3413583518@qq.com,后来改为自己的另一个邮箱设置又可以了myq18356027639@163.com

原文地址:https://www.cnblogs.com/sanshengshitouhua/p/14434016.html