コマンドラインでメールを送信

よく忘れるのでメモ

echo "body........." | mail -s "Subject here." foobar@example.com