Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

i am using a Red Hat Enterprise Linux AS release 4 (Nahant Update 8) and i am facing problems while i try to send an attached file via email using "mail -a" option. the below is displayed:

mail -a
mail: invalid option -- a
Usage: mail [-iInv] [-s subject] [-c cc-addr] [-b bcc-addr] to-addr ...
            [- sendmail-options ...]
       mail [-iInNv] -f [name]
       mail [-iInNv] [-u user]

The rpm packages installed related to "mail" are:

rpm -qa | grep mail

Please, can you tell me what .rpm package i should install on my system in order to be able to use "mail -a".

thank you...

share|improve this question

migrated from Jul 6 '11 at 16:48

This question came from our site for professional and enthusiast programmers.

Where did you find that -a option?
You should have a look at the pair uuencode/uudecode to attach binary files to your mails.

share|improve this answer

Try mailx

   mailx - send and receive Internet mail

   mailx [-BDdEFintv~] [-s subject] [-a attachment ] [-c cc-addr] [-b bcc-addr] [-r from-addr] [-h hops] [-A account] [-S variable[=value]] to-addr . . .
   mailx [-BDdeEHiInNRv~] [-T name] [-A account] [-S variable[=value]] -f [name]
   mailx [-BDdeEinNRv~] [-A account] [-S variable[=value]] [-u user]
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.