Matteo Michelini

Friday, November 21, 2008

HOWTO send mails through the shell

# cat mail_body.txt | mail -s "This is the subject" -F from@email.com -t to@email.com

You can use echo "This is the body" instead of cat mail_body.txt

0 Comments:

Post a Comment

<< Home