[Zope] Help eMail this page to a friend

J. Atwood jatwood@bwanazulia.com
Fri, 23 Feb 2001 18:26:21 -0500


You might want to take a loo at this.. a little modification and it 
will work like a charm.

http://www.zope.org/Members/BwanaZulia/tell_a_friend

J

At 9:45 AM -0800 2/23/01, Loren Stafford wrote:
>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
>
>
>_______________________________________________
>Zope maillist  -  Zope@zope.org
>http://lists.zope.org/mailman/listinfo/zope
>**   No cross posts or HTML encoding!  **
>(Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )