Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-17-2005, 07:10 AM   #1
Registered: Aug 2005
Posts: 40

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

Hi !

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 confir or complete and I hope that it's possible.

Thanks in advance,
Old 11-17-2005, 03:23 PM   #2
Registered: Aug 2003
Location: Akron, OH
Distribution: SuSE 8.2, Slackware current, OpenBSD 3.5-3.8, Fedora Core 2
Posts: 400

Rep: Reputation: 30
#nail -s "Subject" -a File1 -a File2 <BodyFile

If you don't include the Body in this way, the command will wait for a body to be typed in and you to hit Ctrl-D to indicate that you are done.


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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sending mail from shell with attached file loopoo Linux - General 3 11-17-2005 10:57 AM
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 10:15 AM.

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