smtplib.SMTP.sendmail always fails on Win95 machine.

dptaylor3 at my-dejanews.com dptaylor3 at my-dejanews.com
Tue Apr 20 14:06:28 EDT 1999


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    




More information about the Python-list mailing list