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

后端 未结 15 2018
無奈伤痛
無奈伤痛 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:34

    Recently, I have found that this issue can be resolved by confirming that the activity has originated from a request I initiated, by visiting Google Account

    I had to confirm, under Security Events, that the suspicious activity was in-fact me, even though the originating server from where the request came from was cloud hosted, and therefore over 1000 km away. After clicking this step, and setting less secure apps, I was able to use getmail to retrieve my mail, over ssl using either imap or pop.

提交回复
热议问题