Tumblelog by Soup.io
Newer posts are loading.
You are at the newest post.
Click here to check if anything new just came in.

Send mail using “sendmail”

Just a note for myself about how to send mail using “sendmail”

mail.sh


#/bin/sh
mail_file="/tmp/tmp.email"
cat > "$mail_file" <<-EOT
From: no-reply@(....)
To: someone@(....)
Cc:
Subject: testing
MIME-Version: 1.0
Content-Type: testing subject
 
something..
EOT
 
sendmail -t < "$mail_file"

 


Don't be the product, buy the product!

Schweinderl