Unix, Xenix and ODT General FAQ
Using mail from the command line: if you want to send true
attachments (that show up in graphical mail clients as
attachments), you need something like "mutt" or CleanCode Email.
If it's just arbitrary text or a file you want to send, and
don't care about it looking like a real attachment, you can use
ordinary "mail" ("mailx" on some Unixes) at the command line. However,
that's NOT a mime attachment - it's just your file mixed in to
the mail message. However, some mail clients will see it and
treat it as a real attachment, so this may be "good enough":
mailx -s "This is it" someone@someplace <
more text" | mailx somebody somebodyelse firstname.lastname@example.org
You can use uuencode to send a binary file the same way, and
some mail clients may even display that as they would a "real"
However: that's NOT an attachment. Every time somebody asks this
question on the newsgroup, someone is sure to insist that it is,
but a simple visual examination of actual messages should show them
their error. The confusion is, of course, that some mail clients
will act as though the uuencoded text were a proper attachment.
That's fine if the people you are sending to use one of those
clients, but if there is any chance they do not, be safe: use
If this page was useful to you, please help others find it:
Have you tried Searching this site?
Unix/Linux/Mac OS X support by phone, email or on-site:
This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.
Publishing your articles here
Jump to Comments
Many of the products and books I review are things I purchased for my own use. Some were given to me specifically for the purpose of reviewing them. I resell or can earn commissions from the sale of some of these items. Links within these pages may be affiliate links that pay me for referring you to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain. I also may own stock in companies mentioned here. If you have any question, please do feel free to contact me.
Specific links that take you to pages that allow you to purchase the item I reviewed are very likely to pay me a commission. Many of the books I review were given to me by the publishers specifically for the purpose of writing a review. These gifts and referral fees do not affect my opinions; I often give bad reviews anyway.
We use Google third-party advertising companies to serve ads when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here.