sending mailing list with smtplib

Filip Salomonsson filip.salomonsson at gmail.com
Tue Aug 15 16:54:08 EDT 2006


On 15 Aug 2006 13:41:53 -0700, 3KWA <eugene at boardkulture.com> wrote:
> What would be the best way to go about it then? Instantiate a new msg
> in the loop?
>
> I guess I must read the doc more carefully, thanks for your time (if
> you can spare some more I would be grateful).

You can reuse your message object, but you need to delete the old
header before setting a new one:

<http://docs.python.org/lib/module-email.Message.html#l2h-3843>
-- 
filip salomonsson



More information about the Python-list mailing list