Node-RED 在电子邮件节点中出现 "login Failed" 错误

Node-RED getting "login Failed" error in eMail node

我正在使用电子邮件节点连接到 gmail。 我在节点上收到 "Error - Invalid Login"。

在电子邮件节点中,我设置了以下参数:

To: email-i-want-to-email-to@anymail.com
Server: smtp.gmail.com
Port: 465 (which I believe is an SSL port as per the link below)
UserID: gmail-account  (or should this be gmail-account@gmail.com - I've tried both)
Password: the password on the "gmail-account"
Name: email out

这符合我在以下论坛中找到的内容,但我越来越 https://productforums.google.com/forum/#!topic/gmail/IWiwVluINfs 关于为什么我会收到错误的建议?

您需要在您的 gmail 帐户上配置安全设置以允许此处的“不太安全的应用程序”:Allow less secure apps

尝试三件事来帮助确保 Node-RED 电子邮件节点正常工作:

1) 确保您的 Gmail 帐户设置 "Access to less secure apps" 已开启

2) 您的密码是8个字符,不能再长

3) 您的 8 字符密码很安全,即包含特殊字符

当我这样配置时,我成功发送了电子邮件。当我尝试使用不太安全的密码时,出现了错误。