How do you send email from Django using a hosted SMTP account (specially on Namecheap)?
I thought this would be straight forward, and simply a matter of filling out the standard EMAIL_* fields in my settings.py.
However, after entering my credentials in both my settings.py and Thunderbird, Thunderbird can download and send email, but Django times out with the error "SMTPServerDisconnected: Connection unexpectedly closed" when attempting to do the same.
My working settings in Thunderbird for my outgoing server (SMTP):
Server Name: oxmail.registrar-servers.com
Port: 465
User Name: [email protected]
Authentication method: Normal password
Connection Security: SSL/TLS
My non-working settings in my Django settings.py:
EMAIL_HOST = 'oxmail.registrar-servers.com'
EMAIL_HOST_USER = '[email protected]'
EMAIL_HOST_PASSWORD = 'mypassword'
EMAIL_PORT = 465
EMAIL_USE_TLS = True
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
DEFAULT_FROM_EMAIL = EMAIL_HOST_USER
Aren't these settings identical? What am I doing wrong? Why does one work while the other fails?