PyroX has asked for the wisdom of the Perl Monks concerning the following question:
}$mail{From} = 'nstouch<nobody@localhost.localdomain>'; $mail{To} = 'administrator <pyrox_pro@hotmai +l.com>'; #$server = 'xx.xx.xx.xx'; BEGIN { $| = 1; print ""; } END {print "not ok 1\n" unless $loaded;} $loaded = 1; if ($server) { $mail{Smtp} = $server; } $mail{Subject} = "NStouch has a message for yo +u..."; #$mail{Subject} = "Mail::Sendmail version $Mai +l::Sendmail::VERSION test"; $mail{Message} .= "Hello, \n "; $mail{Message} .= "\nNStouch wants to notify y +ou that: \n"; $mail{Message} .= "\n [ $dater ][ TEST ON $na +meserver WAS COMPLETED: SERVER DOWN ][ TIME : $us2 Miliseconds ] "; $mail{Message} .= "\n Thanks! \n \n $mailcount +er \n"; # Go send it if (sendmail %mail) { #print "content of \$Mail::Sendmail::l +og:\n$Mail::Sendmail::log\n"; if($Mail::Sendmail::er +ror) { print " \n OH DANG! \n + Senmail Errors \n ";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Simple question, sendmail... Kill Previous
by suaveant (Parson) on Sep 24, 2001 at 23:06 UTC | |
|
Re: Simple question, sendmail... Kill Previous
by VSarkiss (Monsignor) on Sep 24, 2001 at 23:07 UTC | |
|
Re: Simple question, sendmail... Kill Previous
by PyroX (Pilgrim) on Sep 25, 2001 at 00:10 UTC |