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

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

    I got the following response from Google Apps support:

    You need to turn on your Outbound relay. To do this:

    1. Log into your account at google.com/a/yourdomain.com
    2. Click the Settings tab and then select Email in the left column.
    3. In the Outbound relay section, select Allow users to send mail through an external SMTP when configuring a "from" address hosted outside your domain.
    4. Click Save changes.

    They also provided a help link: http://support.google.com/a/bin/answer.py?hl=en&answer=176054

    After turning on Outbound relay and using the proxy to login to the webmail one more time (thanks to @DaniloBargen and @joshcartme) the issue was resolved. I've read the link explaining what the Outbound relay is and I'm not really sure why would I need it (I don't believe I'm using an external SMTP server).

    Since I'm not really sure this is what solved the issue I won't mark the response as accepted until I get some confirmation.

提交回复
热议问题