1. Create a Test file with your email body
cd ~
vi testmail.txt
Subject: Test Mail Delivery
Content-Type: text/html; charset="us_ascii"
<html>
Testing Mail Delivery
Scott Jenkins
</html>
2. Call sendmail passing in email to, from, subject, and message file
sendmail -f '<email>' '<email>' < testmail.txt
3. Check the maillog on the server
tail –100 /var/log/maillog | grep sent
No comments:
Post a Comment