WebFaction
Community site: login faq

I have never sent an email from my website and now it seems like I would need to send an email through my website preferabbly through the email account that comes with webfaction. So I just created a new mailbox and then went into the webmail to log in with that account and I was happy to find that I can successfully send email messages. Now my question is how can I get the settings so my django website can also send emails through that account. Seems like I would need the following settings

EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'smtp.webfaction.com'
EMAIL_PORT = 1025
EMAIL_HOST_USER = mailbox name
EMAIL_HOST_PASSWORD = password'
EMAIL_USE_TLS = False

Then I would send an email using the following code

email = EmailMessage('Hello', 'World', to=['myself@gmail.com'])
 email.send()

However I get an exception saying

  [Errno 61] Connection refused

asked 09 Oct '16, 18:30

franco850
910
accept rate: 0%

edited 09 Oct '16, 18:40


The ports for the SMTP server are 25 (Standard), 465 (Secure/SSL), and 587 (Secure/TLS). You should be able to send email with the settings as specified in the documentation at https://docs.webfaction.com/software/django/getting-started.html#configuring-django-to-send-email-messages.

permanent link

answered 09 Oct '16, 19:57

maryh
1.3k7
accept rate: 35%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×909
×337
×8
×4

question asked: 09 Oct '16, 18:30

question was seen: 2,103 times

last updated: 09 Oct '16, 19:57

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM