This is just a short note to myself. The objective is to send a file as an attachment via email.
- OS: Ubuntu 8.04.1
- uuencode is a utility included from sharutils package
uuencode puaka.txt puaka.txt | mailx -s "Lagenda Puaka" irwan@**.**
- OS: HP-UX B.11.00
uuencode 17965.txt 17965.txt | mailx -m -s "Sentuhan Kecundang" irwan@**.**
Why I need to add “-m” option to mailx in HP-UX? I just don’t know. From mailx manual page in HP-UX,
-m Do not add MIME header lines Mime Version, Content Type & Content Encoding to the header information while sending mails.