thanks. i was successful inserting it into a dtml document for a sendmail tag. but how do i use <dtml-var "HTTP_X_FORWARDED_FOR"> in a , e.g. page template for a guestbook? so it returns the ip, too. i have this page template code for my guestbook, and zope did not allow to put that ip variable. cheers,sungmook ---source code of a page template --- <div tal:define="entries here/getEntries"> <div tal:condition="entries"> <center> <table border="0" width="800" cellspacing="3" cellpadding="3" tal:repeat="entry entries" bgcolor="#CCCCFF"> <tr align="center"> <td bgcolor="#336699" width="50%"> <b><span tal:replace="entry/name">Name</span></b> from <span tal:replace="entry/wo">Aus</span> </td> <td bgcolor="#336699"> <b><span tal:replace="entry/file_date">Datum</span></b> </td> </tr> <tr align="center"> <td bgcolor="#336699" width="50%"> <img src="/images/url.gif" alt="Homepage" align="middle" /> <a class="plain" target="_blank" tal:attributes="href entry/hp"><span tal:replace="entry/hp"></span></a> </td> <td bgcolor="#336699" width="50%"> <img src="/images/mail.gif" alt="e-Mail" align="middle" /> <kbd><span tal:replace="entry/email">e-Mail</span></kbd> </td> </tr> <tr> <td bgcolor="#5599CC" width="50%" colspan="2"> <kbd tal:content="structure python:here.formatEntry(entry)">Entry contents</kbd> </td> </tr> <tr> <td colspan="2" height="5" bgcolor="#CCCCFF"></td> </tr> </table></center> </div> Jason Bush <jason@nol.org> wrote:Jason Bush wrote:
Sungmook Kim wrote:
thanks.
does anyone know and tell me how to write a code to receive the ip adress of the sender within this sendmail tag (without using an extra zope product) or in general, e.g. in guestbooks?
cheers,
sungmook
If you want the IP of the client running a mail script
will give you that.
Hope that helps.
Note that if a proxy is involved the IP is in HTTP_X_FORWARDED_FOR. -- "The wise man desires to be slow to speak but quick to act." --Confucious Jason Bush | (402) 471-6517 | jason@nol.org | http://www.nol.org _______________________________________________ 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 ) --------------------------------- Gesendet von http://mail.yahoo.de. Bis zu 100 MB Speicher bei http://premiummail.yahoo.de.