將郵件的主題行中的特殊字符轉換爲問號或方框。主題行中的ColdFusion cfmail特殊字符
我試圖在URLEncodedFormat中包裝主題行的動態字符串,但是結果徒勞無功。
<cfset strSubject= URLEncodedFormat(s)>
<cfmail
from="[email protected]"
to="[email protected]"
subject="#strSubject#"
type="html"
>
#testText#
</cfmail>
非常感謝,它的作品 – Arasu 2012-02-21 10:05:01
很酷的解決方案。這裏是wiki條目解釋這個http://en.wikipedia.org/wiki/MIME#Encoded-Word – 2014-01-30 11:17:33