-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
{ Error: Invalid login: 535 5.7.3 Authentication unsuccessful} #953
Comments
@Meenakshi14 , I have also faced the same issue. I have contacted my MS team and confirmed that for sending email via our company smtp mail server they are not expecting any credentials. (means say our company email is test@company.com, to send email via using this no need add "auth" object.) Thanks and Regards, |
I have also faced the same issue. I am from china. I used tencent smtp.qq.com. I applied the auth code and sent mail successfully. But ... it failed last two days. why? |
@puXiaoyi, What is the error you are facing. Please enable debug and post the log. |
Check your credentials, some hosts require additional validation before you can use SMTP |
maybe you need take a authorization code from QQ mail |
Unhandled error for request POST /api/rusers: Error: Invalid login: 535-5.7.8 Username and Password not accepted. Learn more at |
I have also faced the same issue, so anyone has find the solution? |
if you're using google then generate app password, and replace current account password in .env to generated app password |
Is it possible that they do not require these on localhost and only on the domain? Because on localhost it works fine and I get this error thrown on my server. |
For some reason i get the same problem and cannot find any solution to this. Anyone? |
I had this issue and the problem was the 2AF activated at the account. |
I had the same problem and the issue was this: I was using credentials provided by my hosting provider. The default setting was that the credentials were secured with GEO security, meaning the credentials wouldn't work outside my country. I was deploying on Heroku whose servers are abroad. That's why I could send emails from localhost but not from deployed app. After I disabled the GEO security everything worked as it should. |
MAN como desactivaste la seguridad Geo de heroku ? tengo ese problema estoy seguro |
Thanks a lot Kishore, your comment saved me! |
Hi,
I am trying to send email through nodejs using nodemailer module, I am using the following piece of code to send email:
var mailOptions = {
from: 'user@mycompany.com',
to: 'abc@gmail.com',
subject: "Test",
text: '',
html: ''
};
// send mail with defined transport object
transporter.sendMail(mailOptions, (error, info) => {
if (error) {
return console.log(error);
}
console.log("info > ",info);
the same code was working perfectly in last 7 to 8 months but recently I started receiving following error:
{ Error: Invalid login: 535 5.7.3 Authentication unsuccessful
at SMTPConnection._formatError (/var/task/node_modules/nodemailer/lib/smtp-connection/index.js:606:19)
at SMTPConnection._actionAUTHComplete (/var/task/node_modules/nodemailer/lib/smtp-connection/index.js:1335:34)
at SMTPConnection._responseActions.push.str (/var/task/node_modules/nodemailer/lib/smtp-connection/index.js:1293:18)
at SMTPConnection._processResponse (/var/task/node_modules/nodemailer/lib/smtp-connection/index.js:762:20)
at SMTPConnection._onData (/var/task/node_modules/nodemailer/lib/smtp-connection/index.js:558:14)
at TLSSocket._socket.on.chunk (/var/task/node_modules/nodemailer/lib/smtp-connection/index.js:709:51)
at emitOne (events.js:96:13)
at TLSSocket.emit (events.js:188:7)
at readableAddChunk (_stream_readable.js:176:18)
at TLSSocket.Readable.push (_stream_readable.js:134:10)
code: 'EAUTH',
response: '535 5.7.3 Authentication unsuccessful',
responseCode: 535,
command: 'AUTH LOGIN' }
I have checked that credentials are correct and we have not made any changes. It was working since last 8 months perfectly.
The text was updated successfully, but these errors were encountered: