Skip to content

Instantly share code, notes, and snippets.

@tkuchiki
Created November 26, 2013 02:12
Show Gist options
  • Save tkuchiki/7652482 to your computer and use it in GitHub Desktop.
Save tkuchiki/7652482 to your computer and use it in GitHub Desktop.
sendmail に改行文字列を含める
[email protected]
[email protected]
SUBJECT="subject"
MSG=`printf "hoge\nfoo\nbar"`
sendmail -t << EOF
From: $FROM
To: $TO
Subject: $SUBJECT
$MSG
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment