Web Hosting Forum | Lunarpages
News: July 14, 2008 - New Contest! - Submit Your WordPress Theme Designs, Win BIG!
August 5, 2008 - Time to Submit Your Links for the August 08 Site of the Month Award!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
August 20, 2008, 11:45:45 PM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: Formmail - send ip number of sender  (Read 251 times)
magnusingi
Newbie
*
Offline Offline

Posts: 5


« on: March 11, 2008, 02:56:51 PM »

Hi,
I am using formmail script called NMS FormMail .  It works fine, but I am wandering if it is possible to have it send also the IP number of those that use it to send me posts.
Regards, Magnús
Logged
RichardRay
Support
Spaceship Navigator
*****
Offline Offline

Posts: 77



« Reply #1 on: May 04, 2008, 11:53:04 PM »

You would need to setup a line similar to this in the Perl script:

$userip= $ENV{REMOTE_ADDR};

You would then need to have the $userip variable formatted into the email that is sent out.  Here are links to information on using environment variables in Perl:

http://www.pageresource.com/cgirec/ptut19.htm
http://www.4webhelp.net/tutorials/cgi/env_vars.php
Logged

Lunarpages Web Hosting
Lunarpages Affiliate Program
FAQs | Tutorials | LP Glossary

Telephone: 1-714-521-8150
24 hour Network Status Line: 1-562-697-8106
Fax: 1-714-521-8195
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM