Mail Subject Encoding

| | Comments (0)

根據 RFC 2047 的規範, Mail Header 中的 Non-ASCII Text 要用這個格式
「=?charset encoding?encoding code?header content?=」
encoding code 有可能是 b (base64編碼) 或 q (QP編碼)
例如:「測試郵件」編碼後就變成「=?UTF-8?B?5ris6Kmm6YO15Lu2?=」
用 PHP 的話可以用 mb_send_mail(), 會自動幫你編碼.

ref. 石頭閒語:PHP mail() and charset encoding question

Leave a comment

March 2009

Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31        

About this Entry

This page contains a single entry by Pank published on August 17, 2008 3:34 PM.

PHP 4.4.9 is last PHP4 release was the previous entry in this blog.

iptraf - Warning: unable to tag this process is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.