[Zope] Sendmail tag: smtphost as parameter

Dieter Maurer dieter@handshake.de
Sat, 18 Aug 2001 22:06:49 +0200 (CEST)


Vincenzo Di Somma writes:
 > How can I pass the smtphost attribute as a variable in the dtml-sendmail 
 > tag ?
 > 
 > Es: <dtml-sendmail smtphost="my_param">
You cannot do that.

But you can use a mailhost variable.
Its id is resolved via the DTML namespace. Thus, you can have

    <dtml-let currentMailhost=...your_variable...>
      <dtml-sendmail mailhost=currentMailhost>
        ....
      </dtml-sendmail>
    </dtml-let>


Dieter