Using mpack by John G. Myers
The mpack program is a program that uses MIME encoding and mails the attachment to an address. An AIX version of the program is available from
With this program, you can specify the MIME type of the file, or let the program decide for you. With mpack, you can specify the message subject with the -s flag, specify a text message file to go in the body of the message with a -d flag, specify the content type with a -c flag, and then specify the attachment filename and the destination address. In most cases you can leave out the content type and the program will figure it out for you. For large attachments you can also specify a split size to split the file into smaller fragments.
To send an attachment with no message use:
mpack -s "subject here" attachment_file email_address
To send an attachment with a message put the message in a message file and use:
mpack -s "subject here" -d message_file attachment_file email_address
For example if you have an html file and you use sendmail and send it to a notes user, it will come to the user as html source, but if instead you use mpack it will come as a note html attachment and the user will be able to read the document.