smtplib

Grant Edwards ge at nowhere.none
Mon Jun 26 11:08:50 EDT 2000


In article <001501bfdf74$6dff1fe0$14b745c6 at timaratz>, Peter Timaratz wrote:

>Yes, I figured out that smtplib requires the subject and
>headers to be imbedded in the message. I'm new to Python and I
>love the language. But I think that the design of this module
>reflects poorly upon Python.

The module impliments SMTP, hence the name.  SMTP does not
concern itself with message contents.  Writing smtplib to make
certain assumptions or force certain conventions regarding
message content would be just plain incorrect.  

>Almost every CGI programmer who looks at Python will want to
>use this module. It would only take a few lines of code to make
>it much more usable.

Maybe you should write a higher level e-mail module that does
what you are requesting.  It does not belong in smtplib.

>I'm saying this not to flame Python, but to encourage those
>responsible for it's distribution to look more critically at
>what they are putting out.

Perhaps you should look more critically at what you expect from
a library that claims only to impliment SMTP.  If you want a
layer of functionality on _top_ of SMTP, then that's something
another module can impliment.

>I hope that this module is atypical of the quality of this
>product. I'd like to see Python become more popular. There are
>many factors involved in that, but the quality of the modules
>is certainly one of them.

There is nothing wrong with smtplib.  You seem to be expecting
it to do things other than SMTP.

-- 
Grant Edwards                   grante             Yow!  I'm an East Side
                                  at               TYPE...
                               visi.com            



More information about the Python-list mailing list