smtplib: subject? to?

Gerrit Holl gerrit.holl at pobox.com
Fri Sep 3 14:23:14 EDT 1999


On Fri, Sep 03, 1999 at 02:07:34PM -0400, Moshe Zadka wrote:
> 
> > when I try to send mail with python, I can't get a To: and a Subject: header!
> > How do I get them?
> 
> SMTP expects an RFC-822 message, including a To: and Subject:. Python has
> tools to parse rfc822, but not to write, so you will have to <gasp> read
> the docs, and use .write() like regular folk <wink>
> 

Ah.
But if I have to put a To: in the message, why do I have to give recipients?

regards,
Gerrit.




More information about the Python-list mailing list