LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   mail command (https://www.linuxquestions.org/questions/linux-newbie-8/mail-command-605186/)

christianunix 12-07-2007 09:08 AM

mail command
 
If I use the command

Code:

cat textfile|mail email@address.com
then I can email the content of the textfile into email@address.com. But it always arrives with no subject. How can I add a subject using the above method? And is it possible to add multiple addresses to the method above?

colucix 12-07-2007 09:16 AM

You can add a subject on the command line using the -s option. And yes, you can send to multiple adresses. See man mail for details.


All times are GMT -5. The time now is 09:02 AM.