When I use mailx or sendmail (on RHEL 6.9, Perl v5.10.1) from within perl such as
qx( qq\cat $log | mailx -r $EMAIL_ADMIN -s "Exchange Backup Status $rp
+tdate" $SEND_TO\ );
I receive the email in outlook with the following in the body of the message:
User-Agent: Heirloom mailx 12.4 7/29/08
Content-Type: text/plain; charset=us-ascii
If I run the command directly from the o/s, or have the perl code create a shell script with this command that then gets executed, this preamble does not appear.
Anyone know what may be going on here? I really don't want to use packages for such a simple operation.