smtplib

Justin Sheehy dworkin at ccs.neu.edu
Wed Jun 28 18:47:57 EDT 2000


"Peter Timaratz" <timaratz at lisco.com> writes:

> As a kindness to all the idiots like me perhaps this intro can be added to
> the smtplib module:
> 
> "This module implements SMTP and does not send e-mail. If you want to send
> e-mail with Python then learn SMTP. If you don't want to learn SMTP then you
> can use one of the many Perl modules available that don't require you to
> know SMTP."

Nice (but misguided) attempt at sarcasm.

The smtp module certainly does send email, and correctly, via smtp.
That is what it is for.

It doesn't write the email for you.

Anyone reading the docs for the module, particularly the example,
would have seen this written in very clear language:

**
Note that the headers to be included with the message must be included
in the message as entered; this example doesn't do any processing of
the RFC 822 headers. In particular, the `To' and `From' addresses must
be included in the message headers explicitly.
**

Perhaps you should read the documentation before you suggest changes to it.

-Justin

 




More information about the Python-list mailing list