in reply to Manually sending email.
BTW, the here-doc is just great for this kind of stuff: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. ^;
Although it has the same white-space-preserving behavior. You can get around with some contortions, but it's a lot easier to just put everything flush-left.print SENDMAIL <<EOM; 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. EOM
HTH <code
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Manually sending email.
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 |