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";
In reply to Manually sending email. by penguinfuz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |