Note that there are some explanatory texts on larger screens.

plurals
  1. POTrouble with Django sending email though smtp.gmail.com
    primarykey
    data
    text
    <p>I am trying to configure Django's send_email so I can send password reset emails to users. So far I've had no luck on getting it to work. I've set up a basic Gmail account (no Google App etc) and in my Django <strong>settings.py</strong> i have:</p> <pre><code>EMAIL_HOST = 'smtp.gmail.com' EMAIL_HOST_PASSWORD = 'my_password' EMAIL_HOST_USER = 'my_account@gmail.com' EMAIL_PORT = 587 MAIL_USE_TLS = True EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' DEFAULT_FROM_EMAIL = 'admin@my-site.com' </code></pre> <p>Then i try to test this by doing:</p> <pre><code>python manage.py shell &gt;&gt;&gt; from django.core.mail import send_mail &gt;&gt;&gt; send_mail('test', 'test', 'test@test.com', ['my-personal-email@gmail.com']) </code></pre> <p>and I get the error message </p> <pre><code>Traceback (most recent call last): File "&lt;console&gt;", line 1, in &lt;module&gt; File "C:\Program Files\Python27\lib\site-packages\django\core\mail\__init__.py ", line 62, in send_mail connection=connection).send() File "C:\Program Files\Python27\lib\site-packages\django\core\mail\message.py" , line 255, in send return self.get_connection(fail_silently).send_messages([self]) File "C:\Program Files\Python27\lib\site-packages\django\core\mail\backends\sm tp.py", line 88, in send_messages new_conn_created = self.open() File "C:\Program Files\Python27\lib\site-packages\django\core\mail\backends\sm tp.py", line 55, in open self.connection.login(self.username, self.password) File "C:\Program Files\Python27\lib\smtplib.py", line 577, in login raise SMTPException("SMTP AUTH extension not supported by server.") SMTPException: SMTP AUTH extension not supported by server. </code></pre> <p>Does anyone have an idea what is going on! Any hint is appreciated! </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload