Sending emails to 3 addresses....

Tim Williams tim at tdw.net
Fri Mar 30 09:12:04 EDT 2007


On 30/03/07, Tim Williams <tim at tdw.net> wrote:

Emile,   (slight change to my original reply)

You are passing the TO addresses as 3 addresses in a single string.

[TO] results in a list containing a single string - not a list
containing 3 individual addresses.

You need to either pass the addresses to the function as a list
containing the 3 addresses as individual strings, and remove the
conversion to a list at sending time.  Or change

[TO]

to

TO.split(',')

HTH :)



More information about the Python-list mailing list