mailsend
mailsend copied to clipboard
Gmail constantly fails - Error: AUTH failed
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?
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.
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.
I did not know about that option of gmail smtp. Thanks for figuring it out.
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
you need an app-passwort for third party apps like mailsend.. not your own standard password. https://security.google.com/settings/security/apppasswords