쉘 스크립트에서 메일 제목 깨지는 문제 해결
function sendhtmlmail {
export MAILTO=”$1″
export SUBJECT=”$2″
export BODY=”$3″
(
echo “From: =?EUC-KR?B?$(echo $SUBJECT| base64)?= <noreply>”
echo “To: $MAILTO”
echo “Subject: =?EUC-KR?B?$(echo “$SUBJECT” | base64)?=”
echo “MIME-Version: 1.0”
echo “Content-Type: text/html; charset=EUC-KR”
echo “Content-Disposition: inline”
cat $BODY
) | sendmail $MAILTO
}
Thanks for sharing. I read many of your blog posts, cool, your blog is very good.