> Hi,
>
> I am using qmail 1.03 with tcpserver, the problem is that i wrote some
> scripts to tell me when services go down, usually with
> sendmail I will do it
> with
>
> echo "message" | /usr/lib/sendmail [EMAIL PROTECTED]
>
> with qmail I try to do the same but I can't, because the
> /var/qmail/bin/sendmail is gone... so I try to do it with qmail-inject
>
> echo To:[EMAIL PROTECTED] | /var/qmail/bin/qmail-inject
>
> and works... it sends a black email, my question is how to
> put some subject
> or body to the email???
>
> can someone help me??
I like to make nifty little files with all the subject and stuff in them so
that my error messages are more informative.
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!
David