简体   繁体   中英

Gmail smtp email sending fails with my new domain

I can't make gmail smtp send email from my Meteor website when I use my new *.ca domain. Everything works fine if I use another domain.

This is the mup.json mail url:

"MAIL_URL": "smtp://user%40domain.ca:password@smtp.gmail.com:465"

If i replace that line by another working website that i created, it works:

"MAIL_URL": "smtp://user%40domain2.com:password2@smtp.gmail.com:465"
  1. I'm clueless as of how to troubleshoot that. Would that be the domain? I need your help.

EDIT The log of the error is: AuthError: Invalid login

It turned out I had to allow access for less secure apps in my google apps account, as explained in this google support answer:

https://support.google.com/accounts/answer/6010255

That fixed the issue.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM