Newbie: sendmail / subject woes

Gerhard Häring gh_pythonlist at gmx.de
Tue May 28 04:25:52 EDT 2002


* melis <melis at uni-muenster.de> [2002-05-28 09:45 +0000]:
> Hello NG!
> 
> In the reference library it states
> 
> sendmail (from_addr, to_addr, msg[,mail_options,rcpt_options])
> 
> Where do i specify the subject of the mail ?

Did a groups.google.com search on "smtplib subject" already?

Hint: Try to send a message like this:

-- snip --
From: foo at bar.com
To: me at myself.net
Subject: now subjects work

hello
-- snip --

You can use the email module (in Python 2.2+) to create all sort of
fancy emails, including MIME/multipart, MIME/alternative, ...

Gerhard
-- 
This sig powered by Python!
Außentemperatur in München: 8.4 °C      Wind: 4.9 m/s





More information about the Python-list mailing list