[Zope-dev] Easy DTML question -- ha, ha!!!!! *WINNER*

John Fohrman fohrman@mediaone.net
Thu, 18 Nov 1999 15:37:06 -0500


This is indeed the correct answer. Thanks everyone for your responses.
 -- John

> -----Original Message-----
> From: zope-dev-admin@zope.org [mailto:zope-dev-admin@zope.org]On Behalf
> Of Arpad Kiss
> Sent: Thursday, November 18, 1999 10:31 AM
> To: John Fohrman; zope-dev@zope.org
> Subject: Re: [Zope-dev] Easy DTML question -- ha, ha!!!!!
>
>
> Yes, you are correct. I have tested it and doesn't work. But the
> next way it
> works for me:
>
> <dtml-sendmail mailhost=MailHost>
> to: <dtml-var email>
> from: <dtml-var sender>
> subject: subj
>
> It works!
> </dtml-sendmail>
>
> The header and the body must be separated at least one blank line!
> Arpad
>
> ----- Original Message -----
> From: John Fohrman <fohrman@mediaone.net>
> To: Arpad Kiss <sekter@mail.matav.hu>; <zope-dev@zope.org>
> Sent: Thursday, November 18, 1999 1:47 PM
> Subject: RE: [Zope-dev] Easy DTML question -- ha, ha!!!!!
>
>
> > > 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 )
> > >
> >
> >
> > _______________________________________________
> > 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 )
>