The command below will send an email with a Subject and Body, but no Attachment. If I remove < /usr/tmp/BODY_OF_EMAIL I receive the email with Subject and Attachment, but no Body.
cat /usr/tmp/ATTACHMENT.xls | uuencode ATTACHMENT.xls | mailx -s "Subject of email!" [email protected] < /usr/tmp/BODY_OF_EMAIL
/usr/tmp/BODY_OF_EMAIL contains the text "Email Body."
Using
mailx:Using
nail:The
nailmailer is sometimes installed asmail, but it understands MIME, for real attachments.