So I've done some searching and tried a few ideas out there but so far haven't hit the thing I need. So far between mutt and trying to re-configure mailx i've failed but maybe i'm doing something wrong. The end requirement here is that when certain processes etc occur I intend to get an email alert using the mail command. The problem is this is a local server on my home network and I have a website and email set up with a web host I want to use. So how would I Configure mail to use joe@example.com as the from email and use smtp.example.com as the SMTP Server?
My absolute alternative is to use a PHP CLI Script which will make use of the smtp classes instead but I'd rather use the mail command for simplicity.
Thanks in advance.
Bookmarks