How to Test Sendmail from the Shell
Share
Sendmail is an open source smtp server. Many different languages and frameworks interface with sendmail, and when debugging it’s good to be able to quickly test whether or not sendmail is working.
The following is a quick way to verify that sendmail is working.
echo "Subject: test" | /usr/lib/sendmail -v [email protected]