1. 程式人生 > >使用sendEmail成功傳送中文郵件

使用sendEmail成功傳送中文郵件

sendEmail -o message-charset=gbk -f [email protected] -t [email protected] -s smtp.qq.com:587 -xu [email protected] -xp password -u "郵件標題" -m "郵件內容"

sendEmail

-o message-charset=gbk 編碼格式為中文gbk

-f [email protected] 郵件上顯示的傳送人名稱

-t [email protected] 收件郵箱

-s smtp.qq.com:587 qq的smtp及埠

-xu [email protected] 傳送郵箱賬號

-xp password 傳送郵箱密碼(此處為授權碼)

-u "郵件標題"  

-m "郵件內容"