mailsend icon indicating copy to clipboard operation
mailsend copied to clipboard

Gmail constantly fails - Error: AUTH failed

Open methodops opened this issue 9 years ago • 5 comments

I am trying this:

mailsend1.18.exe -to "[email protected]" -from "[email protected]" -ssl -port "465" -auth -smtp "smtp.gmail.com " -sub test +cc +bc -v -user "[email protected]" -pass "mypassword"

Getting error: Error: AUTH LOGIN failed: '534 5.7.14

I also tried with -auth-plain and -auth-login. Similar error with AUTH failed.

My gmail account is not set for 2-factor authentication, password is correct. I also looked into all examples on wiki for SSL on gmail, tried many options but always AUTH failed.

Any ideas?

methodops avatar Jan 25 '16 21:01 methodops

I just tested mailsend v1.18 from windows, mac and linux with -ssl -port 465 and -starttls -port 587, works fine. Make sure you can login to the -user account from a browser. Also if the password has any non-ascii characters in it, the input does not work in Windows.. this is the only problem I can think of. Thanks.

muquit avatar Jan 25 '16 22:01 muquit

Solved. I had to enable "Less secure apps" (turn it ON). You can find it on your account here: http://www.google.com/settings/security/lesssecureapps

Some more reading why this is needed: https://support.google.com/accounts/answer/6010255?hl=en

Hope this will help other people with the same issue.

methodops avatar Jan 26 '16 14:01 methodops

I did not know about that option of gmail smtp. Thanks for figuring it out.

muquit avatar Jan 26 '16 16:01 muquit

Hi, I have 2factor authentication turned off. So, I am not able to do less secure apps. I am doing: mailsend1.18 -t [email protected] -f [email protected] -ssl -port 465 -auth -smtp smtp.gmail.com -sub subject -M message -user [email protected] -pass YourGmailPassword I am getting the error: Error: AUTH LOGIN failed: '535 5.7.8 Username and Password not accepted. Learn more at' Could not send mail

p1r473 avatar Jan 27 '16 06:01 p1r473

you need an app-passwort for third party apps like mailsend.. not your own standard password. https://security.google.com/settings/security/apppasswords

ways2web avatar Nov 06 '16 21:11 ways2web