Multi Recipients With smtplib?

Steve Holden sholden at holdenweb.com
Mon Nov 25 10:59:34 EST 2002


[Jon Abel]
> Sorry for the confusing question, but you got the gist of it (Phew!).
>  I'm pulling the list of addresses out of .ini file, e.g.
>
> mailfrom=me at mydomain.org
> mailto=you at yourdomain.org,me at myotherdomain.org
>
> Basically, what I was doing, was passing the mailto value to
> .sendmail().  The header seem correct (viewed via Mozilla, with headers
> set to all), which is what was confusing me.
>
> Thanks for the pointers!
>
> Regards
>

OK, so in the sendmail call you should just use something like
mailto.split(",") as the list of recipients.

regards
-----------------------------------------------------------------------
Steve Holden                                  http://www.holdenweb.com/
Python Web Programming                 http://pydish.holdenweb.com/pwp/
Previous .sig file retired to                    www.homeforoldsigs.com
-----------------------------------------------------------------------







More information about the Python-list mailing list