ssmtp脚本发中文邮件的笔记
( echo "From:<test@abc.com>"; \
echo "TO:def@abc.com"; \
echo "Subject: =?utf-8?b?5p+l6K+iSVDlnLDlnYA=?="; \
echo "Content-type: text/html;charset=utf-8" ; \
wget -q -O - "wget -q -O - "http://m.ip138.com/ip.asp?ip=8.8.8.8" -e "http_proxy=http://1.2.3.4:8080/" | grep "<h1 class=\"query\">您查询的IP:" | sed -e 's/\s*<[^>]*>/./g' \
) | ssmtp -v def@abc.com