Trying to set up sendmail/phpmailer
Hi, I'm trying to configure my webserver (Ubuntu LAMP 14.04) so that the sites that it hosts can send email but I'm running in circles and I'm confused.
I've tried installing sendmail and postfix using the various DO guides that are out there.
When I run:
echo "This is the body of the email" | mail -s "This is the subject line" firstname.lastname@example.org
mail: cannot send message: Process exited with a non-zero status
If I try to use a sendmail command it just hangs and doesn't do anything.
Neither result in an email being sent.
Where should I start troubleshooting/diagnosing?