[CentOS] how to send mail from console
Kai Schaetzl
maillists at conactive.com
Fri Jan 15 16:45:34 UTC 2010
Jussi Hirvi wrote on Fri, 15 Jan 2010 18:28:54 +0200:
> mail -s "My email subject" me at domain.com <$myfile
Note the end of the command! I think it needs a body to get sent!
I'm using it here like
some command | mail -s "My email subject" me at domain.com 2>1
which mails me the output of the command.
Kai
--
Get your web at Conactive Internet Services: http://www.conactive.com
More information about the CentOS
mailing list