smtplib
Peter Timaratz
timaratz at lisco.com
Mon Jun 26 09:42:54 EDT 2000
Thank you for SMTP.
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. 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.
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. 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.
> -----Original Message-----
> From: python-list-admin at python.org
> [mailto:python-list-admin at python.org]On Behalf Of Gregory Tucker
> Sent: Sunday, June 25, 2000 5:46 PM
> To: Peter Timaratz
> Cc: Python List
> Subject: Re: smtplib
>
>
> It looks like the subject is included in the message body. See the attched
> code from Starship.
>
> The following code will call it (I think).
>
> import SMTP
>
> mailhost="tkd.att.ne.jp"
> mailfrom="tuckerg at acm.org"
> mailto="tuckerg at acm.org"
> subj="Test Message"
> msg="""
> Blah
> Blah
> Blah
> """
>
> s=SMTP.SMTP(mailhost)
> s.send_message(mailfrom, mailto, subj, msg)
> s.close()
>
> Regards,
> Greg
>
> P.S. I am getting very little mail off the Python list. Is it something
> wrong with me?
>
> Peter Timaratz wrote:
> >
> > I'm using smtplib with a CGI script. I'm puzzled as to why this module
> > doesn't support sending a subject for the e-mail.
> >
> > And the e-mail I receive doesn't show the to address in my
> e-mail client.
> >
> > --
> > http://www.python.org/mailman/listinfo/python-list
>
> --
> .---. .---. .--- .---. | Gregory Tucker, Tokyo, Japan
> |---. | |-< >--- |---. |
> `---' `-'`-'`--- `---' | "Our Father, who art in Redmond,
> My opinions are my own. | William by thy name..."
More information about the Python-list
mailing list