#! perl -w # fn_with_me.pl # A quick and dirty way to tell if someone is messing with My Computer +s use Net::SMTP; use Sys::Hostname; $host = hostname; $smtp = Net::SMTP -> new('your.mailhost.net'); #Connect to a mail serv +er $smtp -> mail( 'anysender@theirmailhost.net'); #Sender's name $smtp -> to('myemail@mymailhost.net'); #Receivers name $smtp -> data(); # Send the header $smtp -> datasend("To: myemail\@mymailhost.net\n"); $smtp -> datasend("From: theiremail\@mymailhost.net\n"); $smtp -> datasend("\n"); # Send the Body $smtp -> datasend("Somebody's using ".$host); $smtp -> dataend(); $smtp -> quit;
|
---|
Replies are listed 'Best First'. | |
---|---|
RE: Watching my Users
by httptech (Chaplain) on Jun 18, 2000 at 15:47 UTC | |
by Poetic Justice (Monk) on Jun 20, 2000 at 03:46 UTC |