LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Sending mail from shell with attached file (https://www.linuxquestions.org/questions/linux-newbie-8/sending-mail-from-shell-with-attached-file-383972/)

loopoo 11-17-2005 07:10 AM

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,
Chris

Tino27 11-17-2005 03:23 PM

#nail -s "Subject" -a File1 -a File2 person@validdomain.com <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.


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