问题
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