Contact us Form

Can someone share with me how I can modify the "contact Us"  form to have the IP of someone using the "contact us" passed in the email?

So it ends up looking like this: ============ from sender with email sender@email.com with IP 127.0.0.1

Due to a fair amount of spam recevied through the contact us form I need a way to block senders ip address

But I see no way see it.

Quote · 19 Aug 2010

Hello open the contact.php

find this code line :
$sLetterBody = $sLetterBody . "rn" . '============' . "rn" . _t('_from') . ' ' . $sSenderName . "rn" . 'with email ' .  $sSenderEmail;

 

and replace on :

$sLetterBody = $sLetterBody . "rn" . '============' . "rn" . _t('_from') . ' ' . $sSenderName . "rn" . 'with email ' .  $sSenderEmail . 'IP is' . getenv("REMOTE_ADDR");

PS: If possible do not write me personally, please try to ask on the forum first
Quote · 19 Aug 2010

Thanks! I greatly appreciate it.

Quote · 19 Aug 2010

you welcome:)

PS: If possible do not write me personally, please try to ask on the forum first
Quote · 19 Aug 2010
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.