Mailing List Archive

SMTPLIB accessing MicroSoft SMTP mail server
I had reported a problem that when sending mail to a MS SMTP server my code
was hanging. The fix is in the data() method the msg text is terminated by
sending "\n.\n" It appears that MicroSoft requires a full CRLF. By changing
the line from self.send("\n.\n") to self.send(CRLF+"."+CRLF) problem is
fixed.

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
SMTPLIB accessing MicroSoft SMTP mail server [ In reply to ]
[max@rightworks.com]
> I had reported a problem that when sending mail to a MS SMTP
> server my code was hanging. The fix is in the data() method the
> msg text is terminated by sending "\n.\n" It appears that MicroSoft
> requires a full CRLF. By changing the line from self.send("\n.\n")
> to self.send(CRLF+"."+CRLF) problem is fixed.

Aha! This msg crossed with my reply to c.l.py. As that reply suggested--
but as you no longer need to know <wink> --this is already fixed in 1.5.2.

upgrade!-ly y'rs - tim