LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Sending mail with some attached files using "mail" command? (https://www.linuxquestions.org/questions/linux-software-2/sending-mail-with-some-attached-files-using-mail-command-448588/)

zahadumy 05-25-2006 07:06 PM

Sending mail with some attached files using "mail" command?
 
Usually when I want to send a mail with a file attached to it, I do it with pine, but sometimes it would be a lot easier if I could do it directly with mail, from the console. Does anyone know how to do this?
Btw, I read the mail man page but didn't find anything. Thank you.

nilleso 05-25-2006 08:29 PM

You can use:
Quote:

uuencode filename filename | mailx -s "Subject" name@host.com
cheers:)

zahadumy 05-27-2006 12:36 PM

How do I install uuencode?
 
Fedora 5 doesn't seem to have uuencode installed by default, I have mailx. So I tried to install uuencode with yum, it failed. I googled for a rpm and installed this:
Code:

[root@blue ~]# rpm -Uvh sharutils-4.6.1-1.2.src.rpm
  1:sharutils              warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
########################################### [100%]
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
[root@blue ~]# updatedb
[root@blue ~]# locate uuencode
/usr/bin/gmime-uuencode
/usr/share/man/man1p/uuencode.1p.gz
/var/www/icons/uuencoded.gif
/var/www/icons/uuencoded.png

but still I don't have it installed. Do you have any ideas?

Thanks for this hint, I read uuencode's documentation and this is what I need :)

zahadumy 05-27-2006 10:43 PM

I've got it to work, but meanwhile found this aricle where you can find better alternatives to uuencode, just in case someone is interested. Thanks for the hint. :)


All times are GMT -5. The time now is 03:04 AM.