[Zope] Iterating inside Sendmail

Lennart Regebro lennart@torped.se
Fri, 22 Nov 2002 09:44:31 +0100


From: "Michael" <michael@nichestaffing.com>
> I'm not sure what you are trying to say with:
> > However, specifying the recipients in the <dtml-sendmail> tag is going
to
> > be easier than with Bcc anyway.

You can sepcify the recipients with a list in the dtml-sendmail tag, thusly:

<dtml-sendmail mailto="[kalle@foo.com, biffen@bar.com, banane@frotz.com]">

So if we look at Dylans example, it could be simplified to:

<dtml-call "REQUEST.set(my_names, something_that_produces_addresses() )">
<dtml-sendmail mailto=my_names>
...
</dtml-sendmail>

If you instead specify the recipients as a Bcc-header, all that happens is
that the MailHost take the bcc-header and makes it into a mailto list. And
first making a list into a string and then making that string into a list
seems kinda useless to me. :-)

Best Regards

Lennart Regebro
Torped Strategi och Kommunikation AB