Help for this page
echo "your message body" >/dev/null uuencode /path/to/document | mailx
sub sendmailto { # Get the text of the attachment: ... print MAIL $attachment; close MAIL; }