This repository has been archived by the owner on Mar 8, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 569
Issues using Gmail SMTP
Oren edited this page Jun 9, 2016
·
4 revisions
When using your Gmail SMTP credentials, you may get an error like:
Error Sending: Email failed to send. Error: authorization.failed
Obviously this could happen if your credentials are wrong, so be sure to double check them.
Try using tls: true
instead of ssl: true
in your email config.
Special thanks to @quangmydn for sharing this.
Another reason this could happen is because you have 2-factor/2-step authorization setup. In this case you need to create an app specific password.
- Make sure you have 2-step verification enabled here: https://www.google.com/landing/2step/
- Generate a app specific password here for email here: https://security.google.com/settings/security/apppasswords
- Use this password in your
./config.js
(remember to include the spaces between each 4 char set)
Special thanks to @johnkors for sharing this.
Enable access for less secure apps at https://www.google.com/settings/security/lesssecureapps
I hope this was helpful. If you have questions or think this page should be expanded please contribute by opening an issue or updating this page.