I'm having problems with smtplib tying up my program when email sending fails, because a timeout is never raised. The server I'm using does not and will never have python greater than 2.4, so I can't make use of the timeout argument to the SMTP constructor in later versions of python.
Python 2.4's docs show that the SMTP class does not have the 'timeout' argument:
class SMTP([host[, port[, local_hostname]]])
So how do I simulate this functionality?