IOError when trying to send email in Django app

22 views
Skip to first unread message

Tom Tanner

unread,
May 11, 2018, 3:06:48 PM5/11/18
to Django users
I have a Django app running on a server with uWSGI and nginx. 

In my `local_settings.py` file I have this:

    ###############
    # EMAIL SETUP #
    ###############
    EMAIL_HOST = 'smtp.privateemail.com'
    EMAIL_HOST_USER = 'sup...@mydomain.com'
    EMAIL_HOST_PASSWORD = 'MY EMAIL PASSWORD'
    EMAIL_PORT = 587
    EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
    EMAIL_USE_TLS = True
    
    
    ########################
    # OTHER EMAIL SETTINGS #
    ########################
    ADMIN_EMAIL = "ad...@mydomain.com"
    SUPPORT_EMAIL = "sup...@mydomain.com"


When I fill out the `/password_reset/` template with an email and submit the form, the email I enter gets no email. 

I see these lines in my `uwsgi.log` file after I submit the password reset form.

    Fri May 11 17:48:10 2018 - SIGPIPE: writing to a closed pipe/socket/fd (probably the client disconnected) on request /password_reset/ (ip 73.49.35.42) !!!
    Fri May 11 17:48:10 2018 - uwsgi_response_write_headers_do(): Broken pipe [core/writer.c line 248] during POST /password_reset/ (73.49.35.42)
    IOError: write error

What error is this? Why won't the password reset email send?

James Farris

unread,
May 11, 2018, 8:24:14 PM5/11/18
to django...@googlegroups.com
You probably already have but check the docs
And your postfix configurations (or whatever email send system you are using) 

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/5a50ba30-9709-48a9-a937-bd9afb8bbf30%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages