penguinfuz has asked for the wisdom of the Perl Monks concerning the following question:
open(SENDMAIL, "|/usr/sbin/sendmail -oi -t") or die "Cannot fork for sendmail: $!\n"; print SENDMAIL qq^ From: Monitor <root\@host.domain.com> To: Pen Quin <penguinfuz\@another-domain.com> Subject: $hostname Monitoring Script Hello, I am the monitoring script for $hostname. ^; close(SENDMAIL) or warn "Oops, sendmail did not close properly\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Manually sending email.
by VSarkiss (Monsignor) on Jun 13, 2001 at 06:30 UTC | |
by penguinfuz (Pilgrim) on Jun 13, 2001 at 06:52 UTC | |
by extremely (Priest) on Jun 13, 2001 at 07:04 UTC | |
by RatArsed (Monk) on Jun 13, 2001 at 14:20 UTC |