Skip to content
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

Gmail constantly fails - Error: AUTH failed #91

Open
methodops opened this issue Jan 25, 2016 · 5 comments
Open

Gmail constantly fails - Error: AUTH failed #91

methodops opened this issue Jan 25, 2016 · 5 comments

Comments

@methodops
Copy link

I am trying this:

mailsend1.18.exe -to "receiver@gmail.com" -from "myusername@gmail.com" -ssl -port "465" -auth -smtp "smtp.gmail.com " -sub test +cc +bc -v -user "myusername@gmail.com" -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?

@muquit
Copy link
Owner

muquit commented Jan 25, 2016

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.

@methodops
Copy link
Author

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 methodops changed the title Gmail constantly fails - anything changed recently? Gmail constantly fails - Error: AUTH failed Jan 26, 2016
@muquit
Copy link
Owner

muquit commented Jan 26, 2016

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

@p1r473
Copy link

p1r473 commented Jan 27, 2016

Hi, I have 2factor authentication turned off. So, I am not able to do less secure apps.
I am doing:
mailsend1.18 -t recipient@email.com -f sender@gmail.com -ssl -port 465 -auth -smtp smtp.gmail.com -sub subject -M message -user sender@gmail.com -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

@ways2web
Copy link

ways2web commented Nov 6, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants