On 20/09/05, Daniel Dittmar <[EMAIL PROTECTED]> wrote:
> Chris Dewin wrote:
> > Hi. I've been thinking about using smtplib to run a mailing list from my 
> > website.
> >
> > s = smtplib.SMTP("server")
> > s.sendmail(fromaddress, toaddresess, msg)

> >
> 
> Not really an answer to your question, but it's probably considered bad
> style to publish the email addresses of the recipients via the address
> list. Use a neutral To-address (best: the mailing list address) and add
> the recipients via bcc: headers.
> 

For clarity

The toaddreses don't show in the email,  they are the envelope TO:
addreses.   The addresses in the email's TO: Headers are shown to the
recipient and these are the ones that should be "disguised" as best
practice for mailing lists.

The email module's replace_header('to', 'new-text) will do the job for you.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to