On Thu, 21 Apr 2011 13:57:40 +0300, Thanasis wrote: > When i run it, I get a mail with an attachment named attachment.bin > which is actually a text file. How can I make it appear inline (in the > message body)? I'm guessing you have a different variant of Mail to me, because I get the text inline. Check the man page for your Mail/mail/nail program to find the correct syntax. % qfile -v Mail mail-client/mailx-8.1.2.20050715-r3 (/bin/Mail) is what I use -- Neil Bothwick The trouble with doing something right the first time is that nobody appreciates how difficult it was.