[Zope] Help eMail this page to a friend

Loren Stafford lstafford@morphics.com
Fri, 23 Feb 2001 09:45:31 -0800


I'm trying to make a global method to implement the "eMail this page to a
friend" function I've seen on many sites. (Surely someone has already done
this for Zope, but I don't see How-To or email on the subject.) What I have
so far is this:

<dtml-with "PARENTS[-1]"><dtml-sendmail mailhost=MailHost>
To: <dtml-var eMailThisPageTo>@morphics.com
Reply-to: <dtml-var "AUTHENTICATED_USER.getUserName()">@morphics.com
From: webserver
Subject: <dtml-var URL1>
<dtml-mime type="text/html" encode="7bit">
<dtml-var "REQUEST.resolve_url(URL1)">
</dtml-mime>
</dtml-sendmail></dtml-with "PARENTS[-1]">


But it just emails the text of the method that called it. E.g.

<dtml-var standard_html_header> <h2><dtml-var title_or_id></h2> <ul> <li><a
href="http://helpdesk/">"Perfect Tracker" Help Desk</a> </ul> <dtml-var
titlelist> <ul> <li><a
href="http://search.support.microsoft.com/kb/c.asp?fr=0&SD=GN&LN=EN-US"
>Microsoft Technical Support</a>. </ul> <dtml-var standard_html_footer>

How do I make it render (i.e. process the DTML in) the method that called
it?

-- Thanks
-- Loren