I have a few cron jobs which periodically check my RAID status and disk usage. I would like to have the outcome emailed to myself. The proper syntax for sending mail through terminal is mail -s "subject" myname@gmail.com, however nothing is sent. I know my cron jobs work as I had the outputs redirected to a file.
How does the mail application know what mail server to send the email through? If it used the recipients email server, what happens if it requires authentication? How can I configure the /usr/bin/mail command to use a specific smpt server?
How does the mail application know what mail server to send the email through? If it used the recipients email server, what happens if it requires authentication? How can I configure the /usr/bin/mail command to use a specific smpt server?