Mailing List Archive

smtplib.SMTP.sendmail always fails on Win95 machine.
This is the first time I've used winsock.
I had to add/edit the following lines to smtplib.SMTP.sendmail to get it to
work on my win95 box.

destaddr=self.sock.getpeername()[0] #remote mail server name
if not self.helo_resp and not self.ehlo_resp:
if self.ehlo(destaddr) >= 400:
self.helo(destaddr)

I have no idea what this change does to winNT.
Perhaps some winsock guru can look this over and put some cleaned up and
bulletproofed version of this change into the next win95 release of python?

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own