I put the following in my settings.py file. The email address there is a test one. I found the email settings from Webfaction's site:
EMAIL_HOST = 'smtp.webfaction.com'
EMAIL_HOST_USER = 'hekevintran_test'
EMAIL_HOST_PASSWORD = 'testpass'
EMAIL_PORT = 465
EMAIL_USE_TLS = True
This is what my file looks like:
from django.core.mail import send_mail
send_mail(subject='subject',
message='message',
from_email='[email protected]',
recipient_list=['[email protected]'],
fail_silently=False)
When I run the above it stalls a long time and then gives me this error:
SMTPServerDisconnected: Connection unexpectedly closed
What am I doing wrong?