[Zope] How to find objects in zope and send it thru mail, when you know path

Dhanu dhanunjaya@mindscapecomputing.com
Fri, 29 Jun 2001 12:43:17 +0530


This is a multi-part message in MIME format.

------=_NextPart_000_0013_01C10099.122A6890
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hai Friends,

I want to add a link like "Email this page to Friend" in all my news =
item pages.

For this i will be having link like this


http://192.9.200.90:8080/cmfsite/sendToFriend?article=3Dhttp://192.9.200.=
90:8080/cmfsite/Members/dhanush/2001/june/21/news1

In the sendToFriend
i have  (just for checking)

<dtml-sendmail mailhost=3D"mailhost">
to: dhanunjaya@mindscapecomputing.com
from: dhanu
subject: mail testing
   =20
<dtml-mime  type=3D"text/html">
<dtml-var article >
</dtml-mime>
</dtml-sendmail>


Now when i send mail by clicking the link   (iam sending my self for =
debugging)  iam gettting only link but not the page.

the problem is with=20

<dtml-mime  type=3D"text/html">
<dtml-var article >
</dtml-mime>

.......................

I want to know to get hold of zope object and display its content with =
<dtml-var article>,
when you know the path of the object.

i tried

<dtml-var "_.get(article)">

but still it is giving problem.
................................

Thank you,

Regards,
Dhanu =20


------=_NextPart_000_0013_01C10099.122A6890
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2314.1000" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hai Friends,</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I want to add a link like "Email this =
page to=20
Friend" in all my news item pages.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>For this i will be having link like=20
this</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><A=20
href=3D"http://192.9.200.90:8080/cmfsite/sendToFriend?article=3Dhttp://19=
2.9.200.90:8080/cmfsite/Members/dhanush/2001/june/21/news1">http://192.9.=
200.90:8080/cmfsite/sendToFriend?article=3Dhttp://192.9.200.90:8080/cmfsi=
te/Members/dhanush/2001/june/21/news1</A></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>In the sendToFriend</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>i have&nbsp; (just for =
checking)</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&lt;dtml-sendmail =
mailhost=3D"mailhost"&gt;<BR>to: <A=20
href=3D"mailto:dhanunjaya@mindscapecomputing.com">dhanunjaya@mindscapecom=
puting.com</A><BR>from:=20
dhanu<BR>subject: mail testing<BR>&nbsp;&nbsp;&nbsp; =
<BR>&lt;dtml-mime&nbsp;=20
type=3D"text/html"&gt;<BR>&lt;dtml-var article=20
&gt;<BR>&lt;/dtml-mime&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&lt;/dtml-sendmail&gt;<BR></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>Now when i send mail by clicking the link&nbsp;&nbsp; (iam sending =
my self=20
for debugging)&nbsp; iam gettting only link but not the page.</DIV>
<DIV>&nbsp;</DIV>
<DIV>
<DIV><FONT face=3DArial size=3D2>the problem is with </FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&lt;dtml-mime&nbsp;=20
type=3D"text/html"&gt;<BR>&lt;dtml-var article=20
&gt;<BR>&lt;/dtml-mime&gt;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>.......................</DIV>
<DIV>&nbsp;</DIV>
<DIV>I want to know to get hold of zope object and display its content =
with=20
&lt;dtml-var article&gt;,</DIV>
<DIV>when you know the path of the object.</DIV>
<DIV>&nbsp;</DIV>
<DIV>i tried</DIV>
<DIV>&nbsp;</DIV>
<DIV>&lt;dtml-var "_.get(article)"&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>but still it is giving problem.</DIV>
<DIV>................................</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thank you,</DIV>
<DIV>&nbsp;</DIV>
<DIV>Regards,</DIV>
<DIV>Dhanu&nbsp; </DIV>
<DIV>&nbsp;</DIV></DIV></FONT></DIV></BODY></HTML>

------=_NextPart_000_0013_01C10099.122A6890--