#!/bin/bash
MAILFILE="/tmp/mailfile"
echo "From: =?UTF-8?B?`echo 系統發出| base64`?=
#echo "To: someone.else@whatever.domain" >> $MAILFILE
echo "Subject: =?UTF-8?B?`echo 中文測試 |base64`?=" >> $MAILFILE
echo "Mime-Version: 1.0" >> ;$MAILFILE
echo "Content-Type: text/html" >>$MAILFILE
echo "" >> $MAILFILE
echo "一個中文字" >> $MAILFILE
echo "