[Zope] Re: sendmail tag
Sungmook Kim
dotorimook@yahoo.com
Thu, 16 Jan 2003 19:06:34 +0100 (CET)
--0-949404902-1042740394=:39827
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
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.
--0-949404902-1042740394=:39827
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
<P>thanks.
<P>i was successful inserting it into a dtml document for a sendmail tag.
<P>but how do i use <dtml-var "HTTP_X_FORWARDED_FOR"> in a
<P>, e.g. page template for a guestbook? so it returns the ip, too.
<P>i have this page template code for my guestbook, and zope did not allow
<P>to put that ip variable.
<P>cheers,sungmook
<P>---source code of a page template ---
<P><div tal:define="entries here/getEntries"><BR><div tal:condition="entries">
<P>
<P><center><BR><table border="0" width="800" cellspacing="3" cellpadding="3" tal:repeat="entry entries"<BR> bgcolor="#CCCCFF"><BR> <tr align="center"><BR> <td bgcolor="#336699" width="50%"><BR> <b><span tal:replace="entry/name">Name</span></b><BR> from <span tal:replace="entry/wo">Aus</span> <BR> </td><BR> <td bgcolor="#336699"><BR> <b><span tal:replace="entry/file_date">Datum</span></b><BR> </td><BR> </tr><BR> <tr align="center"><BR> <td bgcolor="#336699" width="50%">
<P> <img src="/images/url.gif" alt="Homepage" align="middle" />&nbsp;<BR> <a class="plain" target="_blank" tal:attributes="href entry/hp"><span<BR> tal:replace="entry/hp"></span></a><BR> </td><BR> <td bgcolor="#336699" width="50%"><BR> <img src="/images/mail.gif" alt="e-Mail" align="middle" />&nbsp;<BR> <kbd><span tal:replace="entry/email">e-Mail</span></kbd><BR> </td><BR> </tr><BR> <tr><BR> <td bgcolor="#5599CC" width="50%" colspan="2"><BR> <kbd tal:content="structure python:here.formatEntry(entry)">Entry contents</kbd><BR> </td><BR> </tr><BR> <tr><BR> <td colspan="2" height="5" bgcolor="#CCCCFF"></td><BR> </tr><BR></table></center><BR></div><BR>
<P>
<P> <B><I>Jason Bush <jason@nol.org></I></B> wrote:
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">Jason Bush wrote:<BR><BR>> Sungmook Kim wrote:<BR>><BR>>> thanks.<BR>>><BR>>> does anyone know and tell me how to write a code to receive the ip <BR>>> adress of the sender within this sendmail tag (without using an extra <BR>>> zope product) or in general, e.g. in guestbooks?<BR>>><BR>>> cheers,<BR>>><BR>>> sungmook<BR>>><BR>>> <BR>>><BR>> If you want the IP of the client running a mail script<BR>> <DTML-VAR ?REQUEST.REMOTE_ADDR?><BR>> will give you that.<BR>><BR>> Hope that helps.<BR>><BR>Note that if a proxy is involved the IP is in HTTP_X_FORWARDED_FOR.<BR><BR>-- <BR>"The wise man desires to be slow to speak but quick to act." --Confucious<BR>Jason Bush | (402) 471-6517 | jason@nol.org | http://www.nol.org<BR><BR><BR><BR><BR><BR>_______________________________________________<BR>Zope maillist - Zope@zope.org<BR>http://lists.zope.org/mailman/listinfo/zope<BR>** No cross posts or HTML encoding! **<BR>(Related lists - <BR>http://lists.zope.org/mailman/listinfo/zope-announce<BR>http://lists.zope.org/mailman/listinfo/zope-dev )</BLOCKQUOTE><p><br><hr size=1>Gesendet von <a href=http://de.yahoo.com/mail_de/tagline/?http://mail.yahoo.de>http://mail.yahoo.de</a>.<br>
Bis zu 100 MB Speicher bei <a href=http://de.yahoo.com/mail_de/tagline/?http://premiummail.yahoo.de>http://premiummail.yahoo.de</a>.
--0-949404902-1042740394=:39827--