Forums

Cannot send Email via SMTP/Django

I was working on a contact-us view on Django. It worked even yesterday, i.e. sending the email but not anymore. Tried both EMAIL_USE_TLS, EMAIL_USE_SSL to no avail. I get the following error message.

/usr/lib/python2.7/socket.pyc in create_connection(address, timeout, source_address)
    569
    570     if err is not None:
--> 571         raise err
    572     else:
    573         raise error("getaddrinfo returns an empty list")

error: [Errno 110] Connection timed out

That sounds like it might be a problem with the host you're trying to connect to. What is the host? (We can switch to private messaging if you don't want to mention it publicly, just send us a message using the "Send feedback" link above.)