I am using "mail" to send e-mails from command line on my OSX 10.6
the "< filename" however doesn't work quite well, as I don't really see the file as "attachment" on any standard e-mail client. Is there any solution for this with the standard tools that come pre-installed with OSX 10.6?
Best Answer
The quick and dirty way to send an attachment is to uuencode the file and mail it.
If you want to do it easily and build a proper MIME encoded message, you could install mutt, and use the -a flag to attach your message.
If you don't want to install anything else, you could build your own MIME message by hand, or use the perl MIME::Entity module to help you: