in reply to Mail with Attachment in UNIX

try uuencode
/usr/bin/uuencode file2attach file2attach | mailx ...