Reputation: 2959
I got a strange error while I am trying to send an email using the code on AWS. If I use the code from local everything works fine but when I am on the server I receive the following error. Any idea?
Error: Invalid login: 534-5.7.14 <https://accounts.google.com/signin/continue?sarp=1&scc=1&plt=AKgnsbvn
534-5.7.14 z2Ma4babAdhc731mC7le5AHx_-Q-tufA-9pLUMKRCPKz1v16SHIFMuBJVTxzR8EkKfiA1E
534-5.7.14 s1fNuhnKyPpEiNtvkWgMDApbGb4lp0gJ1vRAJeISvp8lvn7CWU1F1hO94qHMImN5mo6DB1
534-5.7.14 0EKQuQeY092rxtuFMPrswlS0t8TUmTDfvaHus1Hp5DqrBt4J3QH3JTBQaiXmaz3HI-q-dQ
534-5.7.14 oSx2y2TXMFgcmw4nkU-Bjagkep5zlDzrDXP5uvglxvZqoU6rif> Please log in via
534-5.7.14 your web browser and then try again.
534-5.7.14 Learn more at
534 5.7.14 https://support.google.com/mail/answer/78754 b139-v6sm7016042wmd.36 - gsmtp
The credentials are fine and 'Allow less secure apps' is ON
Thanks
Upvotes: 1
Views: 1487
Reputation: 1
this code work in AWS and Express js
var transporter = nodemailer.createTransport({
host: "smtp.gmail.com",
secureConnection: false,
port: 587,
tls: {
ciphers: 'SSLv3'
},
requireTLS: true,
auth: {
user: 'mygmail',
pass: 'mypass'
}
});
Upvotes: 0
Reputation: 9933
First thing I might wanna say it, change your password and try it again, but if you still get the same thing, I will suggest you try these options:
Google has listed all the potential problems and fixes for us. In as much as you turned on less secure apps setting. Be sure you are applying these to the correct account.
If you have these problems or can’t sign in, first check to make sure you’re using the right password.
For further reading, you might want to check
Upvotes: 1