[Zope-dev] Easy DTML question
Hannu Krosing
hannu@tm.ee
Thu, 18 Nov 1999 11:16:58 +0200
John Fohrman wrote:
>
> Thanks for your response. Yes, it works with a fixed string, that is why I'm
> trying to do that.
try something like
<!--#call "REQUEST.set('smtp_email','smtp:'+email)"-->
<!--#sendmail mailhost=MailHost
mailfrom=sender
mailto=smtp_email -->
It _may_ be the same thing I encountered when setting cookies (in ver 1.0.3,
not sure it is still in 2.x), namely that in some places variables are not
evaluated
In my case I had a rcursive loop that constructed a path from SQL database,
and
when setting a cookie with
RESPONSE.setCookie('path',make_path) the source code of the method was set in
the
cookie resulting in broken page ;(
using the trick with REQUEST.set solved the problem
---------
Hannu