LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   mail -a would not work to send e-mail attachment (http://www.linuxquestions.org/questions/linux-networking-3/mail-a-would-not-work-to-send-e-mail-attachment-126644/)

saavik 12-17-2003 10:40 AM

mail -a would not work to send e-mail attachment
 
hy!

I have an old Suse Linux 7.3 /usr/bin/mail that does not know the option "-a". As i must send a file and could not send the text of the file in the mail i would need something like:

echo "Mail text" | mail -s "Subject" -a /path/to/file.txt mail@somebody.bla

On my new Suse Linux 8.2 everything works fine but the old /usr/bin/mail does say :

mail: invalid option -- a

What can i do ?

jstu 12-17-2003 12:46 PM

Do you have pine installed try using that

saavik 12-18-2003 01:27 AM

yes
 
i think so!

i will trie to find out the syntax for that!

but i you don`t mind maybe you can post it!

thanks

jstu 12-18-2003 09:33 AM

Just try it it's self explanatory


All times are GMT -5. The time now is 06:13 AM.