-
Notifications
You must be signed in to change notification settings - Fork 450
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
Sign in attempt blocked by Google while using Gmail to send verification emails #233
Comments
Just adding a note, this option to turn on the Quick update: Had to generate and add app password as a workaround. |
Should get fixed by documenting a temporary email via this issue: #233 |
we should document this in a markdown file I think 🤔 and then also have this in the Wiki, for troubleshooting purposes |
@isabelcosta @sara-02 We also have another another option which is much better and safer. We can just go to Gmail and enable 2 step verification, and then go to App Passwords and generate a password for Mail app. Using that, even your email is secure and you don't need to configure anything else. Reference : https://support.google.com/accounts/answer/185833?hl=en I can create a PR regrading that in case you need it (We can add that in readme I guess 🤔 ) |
@BadduCoder I did the same. But something did not work, I finally had to switch off the 2 step Auth. |
@sara-02 could you tell me what error are you getting and what steps have you followed ? |
@sara-02, I had this issue as well (#461) and switching 'OFF' 2 step verification and switch 'ON' Less secure app access fixed it for me. But I noticed you mentioned this already been done in your previous post. |
Ohkay!
LESS SECURE APPS: OFF Just try this once and let me know the results. |
Thanks, @BadduCoder. I gave it a try as you suggested above, and it works!! 👍. |
@BadduCoder @mtreacy002 @sara-02 @ashar-7 I was thinking that there are some issues that could be documented in a doc as markdown file inside the docs folder. Something dedicated to troubleshooting some common problems developers face. I see this as one of them. I will create an issue for it. |
OMG I just found another little step that made this go away at least for my Heroku deployment. Its here: https://www.twilio.com/blog/2018/03/send-email-programmatically-with-gmail-python-and-flask.html 🙌 These 2 steps |
To fix the issue of the email internal server error, that i am getting from using a Gmail address to send email (caused by the security that Gmail provides), I will use another email. I am letting you know so you can also check this out for testing, I tested locally and so far, no issues. I will update the environment variables on Heroku app and hopefully this will be solved. Here's an example of how to set the env variables (if you are using https://www.mail.com/mail/):
|
Hi @isabelcosta, just curious, I can't reproduce the same error (internal server error) that caused by this Gmail blocking. I now need it to be blocked to test my #463 PR 🤣. I've posted a comment on that PR. And I also have pushed the changes requested by @ramitsawhney27 even though I couldn't test it coz that Gmail being so 'forgiving' to me... 😆. |
@ashar-7 @isabelcosta closing since this issue cannot be reproduced by other new contributors |
Describe the bug
Google doesn't allow sign from the app for sending verification emails due to "less secure sign-in technology".
Solution
Turning on less secure apps access solves this issue. This problem may occur while using other email providers too. So it would be great to have some documentation to help new users.
To Reproduce
Steps to reproduce the behavior:
Screenshots
The text was updated successfully, but these errors were encountered: