Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
sendmail-8.13.1-3.3.el4
mailx-8.1.1-37.EL4
mailcap-2.1.17-1
procmail-3.22-14.1.el4

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
add comment

migrated from stackoverflow.com Jul 6 '11 at 16:48

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

2 Answers

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
add comment

Try mailx

NAME
   mailx - send and receive Internet mail

SYNOPSIS
   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
add comment

Your Answer

 
discard

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