I am emailing binary attachments via shar (to an exchange account), but keep getting "header" information in the body of the email message and can't figure out how to remove this text. This is what I am doing:
shar zipfile.zip | mail -s "Incoming file" joe@blow.com
This sends the file perfectly, but includes a shell script on how to uudecode the attached file in the message body. I don't want this info in the email since it will only confuse the recipient. I've looked through the shar man page and cannot find a way to suppress the test. I've also used uuencode on an HP-UX server and it works perfectly (no email text), unlike shar.
Any help or other methods to send an attachment from the command line would be appreciated. Thanks...