problem with sendmail
I have written a shell script like this.
But it showing an error like " No recipient addresses found in header " . What will be the problem . Do u have any idea.
TXTFILE=/citione/citigmic/users/gmicop/AJ/textfile # A text message with a preface message
#ATTFILE=/citione/citigmic/users/gmicop/AJ/binary_file # File to be attached and encoding
SUBJECT="Your attachment" # Change as needed
MAILTO=my_name@mycompany.com # Ditto
echo "From: $LOGNAME\nTo: $MAILTO\nSubject: $SUBJECT\n\
Mime-Version: 1.0\nContent-Type: text/plain\n" > /tmp/file
cat $TXTFILE >> /tmp/file
/usr/lib/sendmail -t -oi < /tmp/file
|