smtplib and Python 1.5.1

Anders M Eriksson anders.eriksson at morateknikutveckling.se
Wed Aug 2 10:41:15 EDT 2000


Hello!

I have been trying to create a Python CGI that sends a mail to notify
me that it has ben activated and I have some problems with the
smtplib!

My ISP has Pyton 1.5.1 installed.

After 2 days reading code and RFC's and debugging and ... I have come
to this: 

All my code is working (YES!!!) 

The error is that the smtplib.sendmail does not end the message data
correctly! Instead of sending '\015\012.\015\012' it sends '\012.\012'
which makes the SMTP server to wait forever (or till timeout)

Is this a bug in 1.5.1?
or is it something the person that installed Python has done?
or ...

How do I fix this?

// Anders






More information about the Python-list mailing list