[Zope-dev] Easy DTML question -- ha, ha!!!!!
John Fohrman
fohrman@mediaone.net
Thu, 18 Nov 1999 07:47:07 -0500
> Hi,
> dtml-let may be another solution in this case(not tested, but it should
> work):
>
> <dtml-let smtp_email="'smtp:'+email">
> ...
> </dtml-let>
>
> Arpad Kiss
>
Thanks for the suggestions. Apparently, none of these work however. The
sendmail command apparently doesn't accept any variables inside the tag.
Unfortunatley, this messes us up here, because the mail server won't send
without the address specified within the tag. Not too useful!
> ----- Original Message -----
> From: Hannu Krosing <hannu@tm.ee>
> To: John Fohrman <fohrman@mediaone.net>; <zope-dev@zope.org>
> Sent: Thursday, November 18, 1999 10:16 AM
> Subject: Re: [Zope-dev] Easy DTML question
>
>
> > 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
> >
> > _______________________________________________
> > Zope-Dev maillist - Zope-Dev@zope.org
> > http://lists.zope.org/mailman/listinfo/zope-dev
> > No cross posts or HTML encoding!
> > (Related lists -
> > http://lists.zope.org/mailman/listinfo/zope-announce
> > http://lists.zope.org/mailman/listinfo/zope )
> >
> >
>
>
> _______________________________________________
> Zope-Dev maillist - Zope-Dev@zope.org
> http://lists.zope.org/mailman/listinfo/zope-dev
> No cross posts or HTML encoding!
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope )
>