Add a cronjob to send emails – sendmail

This is the little sh that i’m using to send cronjobed emails.

echo "From: root@localhost";
echo "To: [email protected]";
echo "Subject: Title";
echo "Content-Type: text/html";
echo "MIME-Version: 1.0";
echo "";
echo "Hello,<br /><br />";
echo "This is our text!";
) | /usr/lib/sendmail -t


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.