We have some python scripts which send an email with the error code when ever a failure happens in the python scripts. We are in the process of moving these from our current server (Windows 2003 ) to a new server (Windows 2003 R2). I was testing these scripts and we are unable to receive any email whenever a python script fails.

Here is the error message
"in connect raise socket.error, msg socket.error: (10060, 'Operation timed out')"

Thanks

Doesn't look like a Python problem -- looks like a network problem. Are you sure your new server's network configuration is set up like the old one's? (Both hardware connections and software parameters).

I don't suppose the mail server is linux or unix based, is it? You could use the tcpdump command to capture traffic and troubleshoot at the network level.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.