Node-RED getting “login Failed” error in eMail node

不打扰是莪最后的温柔 提交于 2019-12-12 06:18:36

问题


I am using the email node to connect to gmail. I receive "Error - Invalid Login" on the node.

In the email node, I've set the following parameters:

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

This conforms to what I found at the following forum, but I am getting https://productforums.google.com/forum/#!topic/gmail/IWiwVluINfs Suggestions as to why I would be getting an error?


回答1:


Try three things to help make sure that Node-RED email node works :

1) make sure your gmail account setting "Access to less secure apps" is ON

2) your password is 8 characters, not longer

3) Your 8 char password is strong i.e., include special character

I successfully sent email when I configured it that way. When I tried with less secure password I was getting error.




回答2:


You need to configure the security settings on your gmail account to allow 'less secure apps" here: Allow less secure apps.



来源:https://stackoverflow.com/questions/32491238/node-red-getting-login-failed-error-in-email-node

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!