[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> </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> </DIV>
<DIV><FONT face=3DArial size=3D2>For this i will be having link like=20
this</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>
<DIV> </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> </DIV>
<DIV><FONT face=3DArial size=3D2>In the sendToFriend</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>i have (just for =
checking)</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2><dtml-sendmail =
mailhost=3D"mailhost"><BR>to: <A=20
href=3D"mailto:dhanunjaya@mindscapecomputing.com">dhanunjaya@mindscapecom=
puting.com</A><BR>from:=20
dhanu<BR>subject: mail testing<BR> =
<BR><dtml-mime =20
type=3D"text/html"><BR><dtml-var article=20
><BR></dtml-mime></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></dtml-sendmail><BR></FONT></DIV>
<DIV> </DIV>
<DIV>Now when i send mail by clicking the link (iam sending =
my self=20
for debugging) iam gettting only link but not the page.</DIV>
<DIV> </DIV>
<DIV>
<DIV><FONT face=3DArial size=3D2>the problem is with </FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2><dtml-mime =20
type=3D"text/html"><BR><dtml-var article=20
><BR></dtml-mime></FONT></DIV>
<DIV> </DIV>
<DIV>.......................</DIV>
<DIV> </DIV>
<DIV>I want to know to get hold of zope object and display its content =
with=20
<dtml-var article>,</DIV>
<DIV>when you know the path of the object.</DIV>
<DIV> </DIV>
<DIV>i tried</DIV>
<DIV> </DIV>
<DIV><dtml-var "_.get(article)"></DIV>
<DIV> </DIV>
<DIV>but still it is giving problem.</DIV>
<DIV>................................</DIV>
<DIV> </DIV>
<DIV>Thank you,</DIV>
<DIV> </DIV>
<DIV>Regards,</DIV>
<DIV>Dhanu </DIV>
<DIV> </DIV></DIV></FONT></DIV></BODY></HTML>
------=_NextPart_000_0013_01C10099.122A6890--