send email from commandline

echo "This is message body" | mail -s "This is Subject" -r "Support<support@precisionpros.com>" -a /path/to/file someone@example.com

Posted in Uncategorized.