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

Support for gmail? #10

Closed
fr3fou opened this issue Nov 8, 2020 · 4 comments
Closed

Support for gmail? #10

fr3fou opened this issue Nov 8, 2020 · 4 comments

Comments

@fr3fou
Copy link

fr3fou commented Nov 8, 2020

Many clients simply error out on gmail due to "Less Secure Access"; Does this library have a fix for that?

@xhit
Copy link
Owner

xhit commented Nov 8, 2020

You need turn on Less Secure Apps in Gmail account. See https://devanswers.co/allow-less-secure-apps-access-gmail-account/

@fr3fou
Copy link
Author

fr3fou commented Nov 8, 2020

The problem is that this option keeps getting turned off every month

@xhit
Copy link
Owner

xhit commented Nov 8, 2020

If LSA is resetting is because you need to add a recovery email and phone in the Gmail account. After that, reset your password.

Also, this package use SMTP protocol to send emails. If you really need to use Gmail accounts without having problems I recommend use OAuth2 Gmail API, see https://medium.com/wesionary-team/sending-emails-with-go-golang-using-smtp-gmail-and-oauth2-185ee12ab306

A working project using OAuth2: https://github.com/BinodKafle/gomail

@fr3fou
Copy link
Author

fr3fou commented Nov 8, 2020

Enabled those, hopefully they fix my issue!

@fr3fou fr3fou closed this as completed Nov 8, 2020
@LarsTi LarsTi mentioned this issue Sep 14, 2022
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

2 participants