Script to send email unix with sendmail

cat << EOF | /usr/sbin/sendmail -t
to:myemail@mysite.com
from:"no reply" (Automated Processor)
subject:My subject
My email body.
EOF
This entry was posted in Email. Bookmark the permalink.

One Response to Script to send email unix with sendmail

  1. mark says:

    Hi Andrew,

    Any ideas on best way to inform an external app that a weekly table update has completed so that the apps reports can start?

    Mark

Leave a Reply

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

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>