sendmail from cron

view story

http://www.unix.com – Hi all, Recently i started using sendmail instead of mutt to send the email . In one script i have both sendmail and mutt included and they both give different emails. Code: ##some HTML creation 1) First email cat - $data_dir/TheMailer.txt <<EOF | sendmail -oi -t From: ${MAILFROM} To: ${MAILTO} Subject: $SUBJECT Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit MIME-Version: 1.0 EOF 2) Second email cat $data_dir/TheMailer2.txt | mutt -s "$SUBJECT2" $MAILTO when i run the above script manually i get the both emails , but when i cron it i get o (HowTos)