How to test sendmail from the shell

Tyler Tyler (271)

Posted in these interests:

37 guides
4 guides

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