简体   繁体   English

SMTP错误:“客户端无权向此服务器提交邮件”

[英]SMTP error: “Client does not have permission to submit mail to this server”

I'm getting the following error while sending email. 发送电子邮件时出现以下错误。 What could be the cause? 可能是什么原因?

Client does not have permission to submit mail to this server. 客户端无权向该服务器提交邮件。 The server response was: 5.5.1 STARTTLS may not be repeated. 服务器响应为:5.5.1 STARTTLS可能不会重复。

Here's the stack trace... 这是堆栈跟踪...

Stack Trace 堆栈跟踪

at System.Net.Mail.StartTlsCommand.CheckResponse(SmtpStatusCode statusCode, String response)
at System.Net.Mail.StartTlsCommand.Send(SmtpConnection conn)
at System.Net.Mail.SmtpConnection.GetConnection(String host, Int32 port)
at System.Net.Mail.SmtpTransport.GetConnection(String host, Int32 port)
at System.Net.Mail.SmtpClient.GetConnection()
at System.Net.Mail.SmtpClient.Send(MailMessage message)

I'm connecting to smtp.gmail.com with SSL on port 587 / 465 我正在使用端口587/465上的SSL连接到smtp.gmail.com

It appears you are using an SSL/TLS connection to send the mail message, however it appears for some reason that the code is sending the request to open the connection twice which is not valid. 似乎您正在使用SSL / TLS连接发送邮件,但是由于某种原因,该代码似乎发送了两次打开连接的请求,这是无效的。 Hard to tell just from the exception and stack what the problem is. 仅从异常和堆栈中很难找出问题所在。 Post the sending code if possible. 如果可能,发布发送代码。

Perhaps the SMTP server requires authentication (username / password) and you don't supply them? 也许SMTP服务器需要身份验证(用户名/密码),而您不提供身份验证? (Just a guess) (只是一个猜测)

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 5.7.3客户端无权在Windows 7上向该服务器提交邮件 - 5.7.3 Client does not have permission to submit mail to this server on windows 7 无法发送邮件(邮件中继错误),在SMTP邮件服务器中具有所有设置 - Unable to send mail (Mail Relay error), have all settings in SMTP Mail Server 在IIS7中使用我的SMTP服务器发送电子邮件时出现权限错误 - Permission error when sending e-mail using my SMTP server in IIS7 邮件错误:SMTP服务器需要安全连接,或者客户端未通过身份验证。 服务器响应为:5.5.1需要身份验证 - Mail Error:The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required 如何解决谷歌邮件错误“SMTP 服务器需要安全连接或客户端未通过身份验证”? - How to resolve a google mail error "The SMTP server requires secure connection or the client was not authenticated"? 从服务器smtp发送邮件时出错? - Error in sending mail from server smtp? SMTP 具有加密权限的邮件 Outlook - SMTP mail with encrypt permission Outlook C#SMTP MailMessage收到错误“5.7.57 SMTP; 客户端未通过身份验证,无法在MAIL FROM期间发送匿名邮件 - C# SMTP MailMessage receiving error “5.7.57 SMTP; Client was not authenticated to send anonymous mail during MAIL FROM” 为什么客户端不处理SMTP邮件附件? - Why Doesn't SMTP Mail Attachment Dispose When Client Does? SMTP 服务器需要安全连接或客户端未通过身份验证。 使用 c# webapplication 发送 outlook 邮件时出错 - The SMTP server requires a secure connection or the client was not authenticated. Error while sending outlook mail using c# webapplication
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM