How to test sendmail from the shell

Tyler Tyler (258)
0

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 me@domain.com

Posted in these interests:

linux
75 subscribers
bash
6 subscribers