Forums

ConnectionRefusedError: [Errno 111] Connection refused when trying to send an email

Hi, I've tried to send an email from bash, at first. I've configured in django, in settings all that was needed as specified in this document, but i get this error ConnectionRefusedError: [Errno 111] Connection refused when trying to send an email. The configurations worked on localhost server(my computer). Is there anything besides those settings that am i suppose to do? Thank you.

Those settings should work as-is. Are you sure that the connection that is failing is to the mail server and not some other connection that may be disallowed?