Send mail using “sendmail”

17 01 2013

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: text/plain

 

something..
EOT

sendmail -t < “$mail_file”


Actions

Information

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s




%d bloggers like this: