[Zope] <dtml-sendmail>

Dieter Maurer dieter@handshake.de
Mon, 19 Mar 2001 20:52:21 +0100 (CET)


Petr Knapek writes:
 > I have a list of user e-mail addresses which is created dynamically.  I
 > would like to use <dtml-sendmail> tag to send an e-mail at all addresses
 > in my dynamical list but do not know what the syntax of mailto attribute
 > in sendmail tag shoul be.=20=20
Do not use the "mailto" attribute, use the
"To:" header in the send mail, similar to:

      <dtml-sendmail mailhost=...>
      To: <dtml-var expr="_.string.join(address_list,',')">
      ....

ATTENTION: This is indented only for readability. In your
  DTML code, "To:" must start in the first column!



Dieter