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.

John S.

Jonathan wrote:

----- Original Message ----- From: "John Schinnerer" <[EMAIL PROTECTED]>
To: <>
Sent: Sunday, July 16, 2006 11:49 PM
Subject: [Zope] question on simple_send in MailHost


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:

        A commaseparated string or list of recipient(s) of the message.
        The address of the message sender.
        The subject of the message.
        The body of the message.

So it reads like it can handle more than one To: address, something like this comma-separated string:


...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, ',').


Zope maillist  -
**   No cross posts or HTML encoding!  **
(Related lists - )


John Schinnerer - MA, Whole Systems Design
- Eco-Living -
Whole Systems Design Services
People - Place - Learning - Integration
Zope maillist  -
**   No cross posts or HTML encoding!  **
(Related lists - )

Reply via email to