LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-25-2006, 07:06 PM   #1
zahadumy
Member
 
Registered: May 2005
Location: Cluj, Romania
Distribution: Fedora Core 6
Posts: 226

Rep: Reputation: 31
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.
 
Old 05-25-2006, 08:29 PM   #2
nilleso
Member
 
Registered: Nov 2004
Location: ON, CANADA
Distribution: ubuntu, RHAS, and other unmentionables
Posts: 372

Rep: Reputation: 31
You can use:
Quote:
uuencode filename filename | mailx -s "Subject" name@host.com
cheers
 
Old 05-27-2006, 12:36 PM   #3
zahadumy
Member
 
Registered: May 2005
Location: Cluj, Romania
Distribution: Fedora Core 6
Posts: 226

Original Poster
Rep: Reputation: 31
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
 
Old 05-27-2006, 10:43 PM   #4
zahadumy
Member
 
Registered: May 2005
Location: Cluj, Romania
Distribution: Fedora Core 6
Posts: 226

Original Poster
Rep: Reputation: 31
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sending mail from shell with attached file loopoo Linux - Newbie 1 11-17-2005 03:23 PM
Sending mail from shell with attached file loopoo Linux - General 3 11-17-2005 10:57 AM
Qmail problem: ISP mail and virtual mail, "sorry no mailbox, here by that user" barryw Linux - Networking 7 05-28-2005 12:43 PM
How to stop the redhat sending me e-mail called "LogWatch" automatically? chuanweizuo Red Hat 2 03-08-2005 09:19 AM
Sending mail with "mail" using another mailserver ericcarlson Linux - Software 0 07-25-2004 05:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration