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 8580795
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T20:54:11+00:00 2026-06-11T20:54:11+00:00

Currently we have a server (Windows 2003 sp2) that runs python scripts overnight, and

  • 0

Currently we have a server (Windows 2003 sp2) that runs python scripts overnight, and then emails us whether the scripts ran correctly, I am transferring these scripts to a new server (also Windows 2003 SP2), however when the script tries to use the smtplib module, i get the following error in the pythonwin IDE.

  File "D:\Python26\ArcGIS10.0\lib\smtplib.py", line 239, in __init__
    (code, msg) = self.connect(host, port)
  File "D:\Python26\ArcGIS10.0\lib\smtplib.py", line 296, in connect
    (code, msg) = self.getreply()
  File "D:\Python26\ArcGIS10.0\lib\smtplib.py", line 340, in getreply
    raise SMTPServerDisconnected("Connection unexpectedly closed")
SMTPServerDisconnected: Connection unexpectedly closed

Is there anything I need to do on the server to get the script to send emails?

Thanks

  • 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. Editorial Team
    Editorial Team
    2026-06-11T20:54:12+00:00Added an answer on June 11, 2026 at 8:54 pm

    If the python code worked on the previous server it’s unlikely to be a problem with the python code itself. I would suggest troubleshooting basic email sending functionality with a telnet session to verify everything is working properly. Examples of testing SMTP functionality with telnet are available at these URLs:

    • http://exchange.mvps.org/smtp_frames.htm
    • http://www.activexperts.com/activemail/telnet/

    The issue may be firewall related on the server the python code is running on or the email server itself. The issue may also be the configuration of the mail server itself is configured to only accept outgoing email from certain systems.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a windows service (currently running under Windows 2003 Server) that needs to
Windows Server 2003. I have an existing DotNetNuke website. SQL Server is currently running
The code I am currently working on runs on Windows Server 2003, but needs
I currently have a Firebird server on Windows and Windows desktop client applications for
Currently I have Windows App which is directly opening database connection (SQL Server is
I currently have a control that is being hidden on my server side using
I currently have an app that requires connection to a server in multiple activities.
We have an number of old visual C++ 6 windows services that are currently
I have a WSE 3.0 based web service running in Windows Server 2003 under
I am currently running Cygwin on a target Windows Server 2003 machine to fire

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.