Aloha, Thanks all for the suggestions...for the time being I can do what I need by sending to only one address. It was trying to test the send by sending to multiple addresses (mine and others') that brought this out... I will try a list next time I need multiple addresses in the To: field. thanks, John S. Jonathan wrote:
----- Original Message ----- From: "John Schinnerer" <john@eco-living.net> To: <zope@zope.org> Sent: Sunday, July 16, 2006 11:49 PM Subject: [Zope] question on simple_send in MailHost
Aloha,
The Zope (2.7.5) API docs for MailHost show this for simple_send:
-------------- simple_send(self, mto, mfrom, subject, body):
Sends a message. Only To:, From: and Subject: headers can be set. The arguments are:
mto A commaseparated string or list of recipient(s) of the message. mfrom The address of the message sender. subject The subject of the message. body The body of the message. --------------
So it reads like it can handle more than one To: address, something like this comma-separated string:
'me@mine.com,you@yours.com,him@his.com'
...but when I do this the message only gets sent to the first address in the list.
I have never used simple_send..., but have you tried putting the 'To' addresses in a list format, eg. ['addr1', 'addr2', ...]? - if you already have a comma-separated string you can easily pass this as a list with something like: string.split(addressString, ',').
Jonathan
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
-- John Schinnerer - MA, Whole Systems Design ------------------------------------------ - Eco-Living - Whole Systems Design Services People - Place - Learning - Integration john@eco-living.net http://eco-living.net