SMTP服务器需要安全连接,或者客户端未在nopcommerce 3.70中进行身份验证 [英] The SMTP server requires a secure connection or the client was not authenticated in nopcommerce 3.70

查看:372
本文介绍了SMTP服务器需要安全连接,或者客户端未在nopcommerce 3.70中进行身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在nopcommerce 3.70中向客户端发送邮件,但是在发送邮件时收到错误。它显示SMTP服务器需要安全连接或客户端未经过身份验证。服务器响应为:5.5.1需要身份验证。向客户端emailid发送电子邮件时。



这是我在nopcommerce管理面板中的emailID的配置



电子邮件地址:mextra03 @ gmail .com 
电子邮件显示名称:额外邮件
主持人:smtp.gmail.com
端口:587
用户:额外邮件
密码:xxxxxxxxxx(密码为10位)包含数字和字母)
SSL:启用





我在这个论坛中看到这与此问题有关,而且我也是尝试但显示同样的问题。



谢谢。



我尝试过:



我尝试过很多东西,例如打开

允许安全性较低的应用

选项通过引用与问题网站相关的gmail帐户等,但仍然在nopcommerce中显示相同的问题。

解决方案

这是SMTP配置的最基本问题之一。首先,你的解决方案应该有效,但事实并非如此。因为错误说明了,

Quote:

5.5.1需要验证。

这需要验证,而不是一个安全的渠道。在这种情况下,我建议首先检查用户名/密码组合。如果它们是正确的,则只能设置安全性较低的应用程序选项。

发送请求
| - 检查要求认证
| - 读取凭证
| - 验证凭证
| - 检查app条件
| - 发送OK
| - 失败
| - 失败
| - 失败



当然这是仅仅是夸大其词,但事情就是这样,如果你无法解决上一步,你的应用将无法使用这些服务。此外,在互联网上你会发现这个问题的其他解决方案,例如,



*弱密码

*不安全的渠道(TLS? )

*不太受信任的应用

* Google阻止登录(登录您的帐户并查看活动)

*更多。



因此,如果您真的想解决这个问题,或者使用大量电子邮件,为什么不使用电子邮件服务提供商呢?那里有很多服务提供商,他们在发送电子邮件之前不需要这么复杂的设置 - 只是一个令牌。



阅读本文,我将讨论(几乎)编写SMTP应用程序时需要了解的所有内容; 用于在.NET应用中发送电子邮件的通用SMTP代码 [ ^ ]。但是,用C#编写,它仍然可以让您了解SMTP对您的期望,并且您可以在其他框架中执行相同的操作。



否则,它可能只是与Nopcommerce,读这个,

[SOLVED] 5.5.1 smtp.gmail.com所需的身份验证 - nopCommerce [ ^ ]


最后得到了答案,即想要从gmail帐户获得许可,这只是我们的邮件[根据安全建议]。此权限链接有人刚刚使用您的密码尝试登录您的帐户。谷歌阻止了他们,但您应该检查发生了什么。已通过我们的访问gmail电子邮件帐户发送gmail,它是当我们尝试通过任何应用程序发送邮件时发生,因此通过获得gmail帐户的许可,我们可以访问从我们的Gmail帐户发送邮件到其他电子邮件帐户。 


I want to send mail to the client in nopcommerce 3.70 but it is getting the error while sending the mail. It shows "The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required." when send email to the client emailid.

Here is my configuration for the emailID in admin panel of nopcommerce

Email address : mextra03@gmail.com
Email display name : extra mail
Host : smtp.gmail.com
Port : 587
User : extra mail
Password : xxxxxxxxxx (10 digit of password containing numeric as well as alphabet)
SSL : Enable



I saw this related to this question in this forum and also I tried but showing the same issue.

Thank You.

What I have tried:

I tried many of things like turn on the

"Allow less secure apps" 

option in gmail account etc by refering related to question website but still shows the same issue in nopcommerce.

解决方案

This is one of the most basic problems with SMTP configurations. Primarily, your solution should've worked, but it didn't. Because the error says,

Quote:

5.5.1 Authentication Required.

This requires authentication, not a secure channel. In this case, I would recommend checking the username/password combination first. If they are correct, only then "Less secure apps" option can be set.

send request
|- check require authentication
   |- read credentials
   |- verify credentials
      |- check app condition
         |- send OK
      |- fail
   |- fail
|- fail


Of course this is mere exaggeration, but this is how things work so if you cannot fix the previous step your app will not be able to utilize the services. Also, on the Internet you will find other solutions to this problem, such as,

* Weak password
* Insecure channel (TLS?)
* Less trusted app
* Google preventing sign-in (login to your account and see the activity)
* Much more.

Thus, if you really want to work out with this, or are using mass emails, why don't you use an email service provider? There are a lot of service providers out there, and they do not require such a complex setup before sending emails — just a token.

Read this article where I discuss (almost) everything you need to know while programming SMTP apps; Universal SMTP code to send emails in .NET apps[^]. However, written in C#, it can still give you an idea of what an SMTP is expecting from you and you can do the same in other frameworks.

Otherwise, it might be just with Nopcommerce, read this,
[SOLVED] 5.5.1 Authentication Required with smtp.gmail.com - nopCommerce[^]


Finally got an answer and i.e. want to take the permission from gmail account that it is our mail only[as per the security propose]. This permission link "Someone just used your password to try to sign in to your account. Google blocked them, but you should check what happened." has send by gmail in our access gmail email account and it is happening when we try to send mail by any application and hence from that by taken permission from gmail account we can access to send mail from our gmail account to other email account. 


这篇关于SMTP服务器需要安全连接,或者客户端未在nopcommerce 3.70中进行身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆