email does not deliver body when I use < 'file'

1

Moving from centos 5 to 6.4. I have many scripts that use mail with < 'file' at the end to email various reports to users rather than use -a BUT when I use that syntax with the mail installed on the new system the body is empty. ex: mail -s 'subject' tfxobrien@gmail.com < /o/tob/file works on old mail but not on new

Tim OBrien

Posted 2013-05-29T17:40:30.683

Reputation: 11

Did you review the contents of /var/log/maillog? Also be aware that the default MTA in RHEL 5 was Sendmail while in RHEL 6 it is Postfix. – Marco Baldelli – 2013-05-29T18:24:23.080

No answers