[Zope] MailHost Question (multiple To addresses) from Python
Script
Timothy Wilson
wilson@visi.com
Mon, 1 Oct 2001 09:06:49 -0500 (CDT)
On Mon, 1 Oct 2001 complaw@hal-pc.org wrote:
> Does anyone know how use the MailHost object to send copies of the same message
> to multiple users from a python script?
>
> Using a semi-colon to separate users (e.g., "user1@host.com; user2@host.com")
> doesn't work, at least when using MS Exchange.
>
> Any hints would be appreciated.
If you've got a list of the email recipients in an HTML form (say
emailRecipients), then you can surround your <dtml-sendmail> tags with a
<dtml-in emailRecipients> and just loop through the list. I believe this is
mentioned in the Zope Book.
-Tim
--
Tim Wilson | Visit Sibley online: | Check out:
Henry Sibley HS | http://www.isd197.org | http://www.zope.com
W. St. Paul, MN | | http://slashdot.org
wilson@visi.com | <dtml-var pithy_quote> | http://linux.com