On Sun, Nov 15, 2009 at 8:00 PM, LuKreme <kremels(_at_)kreme(_dot_)com> wrote:
I tried the following:
:0
|(echo "Subject: Alert"; \
cat $MYFILE)|/usr/sbin/sendmail -io $MYAD
But this put the contents of $MYFILE into the subject.
(What's up with the "o" in "-io"? My sendmail doc doesn't show a
useful semantic for it.)
Not directly the cause of your problem, but if you're piping to
sendmail, you should supply a relatively complete message header with
From/To/Date/Subject. You're also responsible for providing the blank
line between the header and the body, which I think is the direct
cause of your problem.
Check to see if you have the "mail" command? It may work better for you to use
|mail -s "Alert" $MYAD < $MYFILE
If you must use sendmail, try it like this:
|(echo "From: $MYAD";\
echo "To: $MYAD";\
echo "Date: `date -R`";\
echo "Subject: Alert";\
echo "";\
cat $MYFILE) | /usr/bin/sendmail -i $MYAD
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)de
http://mailman.rwth-aachen.de/mailman/listinfo/procmail