Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 171023
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T12:54:49+00:00 2026-05-11T12:54:49+00:00

I put the following in my settings.py file. The email address there is a

  • 0

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='hekevintran_test@webfaction.com',           recipient_list=['recipient@yahoo.com'],           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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T12:54:50+00:00Added an answer on May 11, 2026 at 12:54 pm

    I have a Django project on Webfaction right now that is properly sending emails. The only difference between your settings and mine is that I did not specify EMAIL_PORT or EMAIL_USE_TLS. Try it out without those settings and let Django use the default it has and see if it works.

    For reference’s sake, the default settings are:

    EMAIL_PORT = 25 EMAIL_USE_TLS = False 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 73k
  • Answers 74k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer No, you don't have to add it again. You can… May 11, 2026 at 2:11 pm
  • added an answer Use the -d operator and File::Path. use File::Path qw(make_path); eval… May 11, 2026 at 2:11 pm
  • added an answer That would be a Double Here's a nice cross reference. May 11, 2026 at 2:11 pm

Related Questions

I wrote the following javascript to put in my startup folder to work around
I am getting the following error when I put class files in subfolders of
I have done the following code in JavaScript to put focus on the particular
I have put together the following mootools script window.addEvent('domready', function() { var shouts =
I have the following div layout: Everything is fine when I put normal txt
I'm trying to get a trivial Django project working with Passenger on Dreamhost, following
I created a sub-directory of my Django project called bin where I want to
I've run across an interesting PHP/SOAP error that has me stymied. After searching I
I have a web reference for our report server embedded in our application. The

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.