WebFaction
Community site: login faq

I'm trying to use the webfaction smtp in Django to send emails. This is what I have in my settings.py:

EMAIL_HOST = 'smtp.webfaction.com' 
EMAIL_HOST_USER = [my webfaction inbox name]
EMAIL_HOST_PASSWORD = [my webfaction password]
DEFAULT_FROM_EMAIL = [my webfaction email address that I can send emails to]
SERVER_EMAIL = [same as DEFAULT_FROM_EMAIL]
EMAIL_PORT = 25

And if I invoke send_mail (with from django.core.mail import send_mail on top of the file), it hangs until it times out (getting 60, 'Operation timed out'). I tried using gmail smtp, and that sends emails out fine (but I don't want to use gmail smtp).

Thanks in advance for your input.

asked 17 Apr '11, 22:02

gasrange
111
accept rate: 0%

edited 17 Apr '11, 22:13

ryans ♦♦
5.0k93260

Recently a client has reported a similar problem and ultimately succeeded with something like this:

EMAIL_HOST = 'smtp.webfaction.com'
EMAIL_PORT = '587'
EMAIL_HOST_USER = (mailbox name)
EMAIL_HOST_PASSWORD = (mailbox password)

(In this case, Django was attempting to use TLS)

Can you try this and let us know if it helps? Thanks!

(17 Apr '11, 22:16) ryans ♦♦

That works perfectly. Thank you very much!

(18 Apr '11, 16:37) gasrange
Be the first one to answer this question!
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
×41

question asked: 17 Apr '11, 22:02

question was seen: 3,927 times

last updated: 18 Apr '11, 16:37

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