> cat - > downmessage.msg
> From: Alerter <[EMAIL PROTECTED]>
> To: Alertee <[EMAIL PROTECTED]>
> Subject: Its down!
>
> Halp Halp, my process is down!
>
> ^D
>
> cat downmessages.msg | /var/qmail/bin/qmail-inject
>
> Pretty simple, and oh-so-pretty!
Alternatively:
/var/qmail/bin/qmail-inject <<ENDOFDATA
From: Alerter <[EMAIL PROTECTED]>
To: Alertee <[EMAIL PROTECTED]>
Subject: Its down!
Halp Halp, my process is down!
ENDOFDATA
And remove the need for an external file. (Of course an external file is good
for other things such as being able to change the message and recipient without
changing the script...)
Regards.