LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 11-17-2005, 09:06 AM   #1
loopoo
Member
 
Registered: Aug 2005
Posts: 40

Rep: Reputation: 15
Sending mail from shell with attached file


Hello all !

I want to send an e-mail from a shell command and to be able to attach at least 2 files to it.
I found mutt, but I need something that will not promt anything that I need to config or complete and I hope that it's possible.

Thanks in advance,
Chris
 
Old 11-17-2005, 09:55 AM   #2
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 52
This should work on the majority of email clients:

Code:
echo "Body" | mutt -a file1 -a file2 -s "Subject" email@domain.com
 
Old 11-17-2005, 10:07 AM   #3
loopoo
Member
 
Registered: Aug 2005
Posts: 40

Original Poster
Rep: Reputation: 15
Thanks a lot for your help.

It goes perfect.

Chris
 
Old 11-17-2005, 10:57 AM   #4
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 52
Happy it solved your problem.

Please, do not post the same message in multiple forums.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
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
Shell script sending mail mfrick Linux - General 5 09-01-2005 07:46 PM
Sending mail from shell: how to define custom headers? ricky_ds Linux - Software 3 06-22-2005 07:58 AM
sending mail using shell meshmesh Linux - Software 1 01-25-2004 07:25 AM
sending a mail appending a file saavik Linux - Newbie 4 07-12-2002 03:50 AM


All times are GMT -5. The time now is 12:32 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration