How can I avoid google mail server asking me to log in via browser?

后端 未结 15 1926
無奈伤痛
無奈伤痛 2020-12-04 18:13

I am trying to send emails from Django using an email configured by Google Apps, my configuration at the settings.py file looks something like this:

<         


        
相关标签:
15条回答
  • 2020-12-04 18:17

    Just go to https://accounts.google.com/DisplayUnlockCaptcha and click "continue". This is going to allow access from other servers.

    0 讨论(0)
  • 2020-12-04 18:18

    Option #1 (this worked for me):

    After getting the error Please log in with your web browser and then try again. Learn more etc. when trying to send email from my web application, I logged in to the email via browser from my local computer.

    After I logged in, there was a yellow notification bar on top which asking me if I want to allow external application access my mail. I confirmed this and Google asked me to log in to the account from the application within the next 10 mins. This will white-list the application.

    Option #2:

    If Option #1doesn't work for you, try this: http://www.rocketideas.com/2012/05/gmail-error-password-not-accepted-from-server-solved/

    0 讨论(0)
  • 2020-12-04 18:21

    This is occuring due to some apps are marked as less secure apps by google. So to use those apps, you need to give access for those apps. to do that follow http://www.codematrics.com/your-imap-server-wants-to-alert-you-to-the-following-please-login-via-your-web-browser-gmail/

    Hope this will solve your issue.

    0 讨论(0)
  • As of now (look at my post date) there is only one "Allow less secure apps" toggle in the Gmail account admin UI: https://myaccount.google.com/u/0/security#connectedapps

    It'll work from your local computer (Mac or PC) after that.

    To allow access from Amazon EC2 (and I suspect other Cloud-located hosts), there is yet another flag to set in Google's never ending battle with spammers: https://accounts.google.com/b/0/DisplayUnlockCaptcha

    0 讨论(0)
  • 2020-12-04 18:25

    In my case, when i tried to login to the google account via web, it asked me for a captcha. I entered the captcha and then the automation worked.

    0 讨论(0)
  • 2020-12-04 18:26

    All of the above doesn't help in my case (weird). But this link might help you:

    https://security.google.com/settings/security/activity

    You can access it via Google Plus

    1. Open Google+
    2. Select "Security" from the top
    3. Under "Recent activity" click "View all events"
    4. You will see a list of "Unusual Activity"
    5. It shows "Application / device sign-in attempt (prevented) Singapore" as I'm using AWS from Singapore
    6. Click on "Change" > "Yes, that was me!"
    7. Retry again. Done!
    0 讨论(0)
提交回复
热议问题