Can ya help me with this?

nike_guy_man's picture

They have: 840 posts

Joined: Sep 2000

I need a script to send me an e-mail containing the IP address of a user when they do something.
This should be sent as soon as they enter the page.
Thanks

Laughing out loud

They have: 122 posts

Joined: Jun 2000

Uhm, there are E-mail modules available from CPAN or you can just use system("echo \"$user from $ENV{REMOTE_ADDR} did $blah\" | mail -s \"[script] $user\" [email protected]");

Rob Radez
OSInvestor.com

nike_guy_man's picture

They have: 840 posts

Joined: Sep 2000

??
can u put that into cgi code lol
I completely read that wrong
Post it in cgi type please
thanks

They have: 122 posts

Joined: Jun 2000

That is valid perl code, except for the [email protected] (should be blah\@blah.com because I forgot to escape the @). What is cgi [type,code]?

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.