天天看點

解決Jmail發送郵件标題出現亂碼

浠?澶╁?ㄥ??JMAIL????浠剁???跺??,?ユ?跺?扮????浠舵??棰??ㄦ??涔辯??,缁???AIDU涓???绱㈢?浜?瑙e?充?,浠ヤ????芥?頒唬??..

<%

Sub Sendemail(title,content,email)

Set jmail = Server.CreateObject("JMAIL.Message") '寤虹????????浠剁??瀵矽薄

jmail.silent = true '灞??戒?澶???璇?锛?杩???FALSE璺?TRUE涓ゅ??

jmail.logging = true '???ㄩ??浠舵?ュ?

jmail.Charset = "GB2312" '??浠剁????瀛?缂???涓哄?芥??

jmail.ContentType = "text/html" '??浠剁???煎?涓?TML?煎?

jmail.ISOEncodeHeaders = false '?????琛?ISO缂???锛?榛?璁や負True(??涓?浜?杩?涓???

jmail.AddRecipient email '??浠舵?朵歡浜虹???闆??

jmail.From = "[email?protected]" '??浠朵漢??E-MAIL?闆??

jmail.MailServerUserName = "[email?protected]" '?誨???浠舵???″?ㄦ???????ㄦ?峰??

jmail.MailServerPassword = "11111" '?誨???浠舵???″?ㄦ??????瀵???

jmail.Subject = title '??浠剁????棰?

jmail.Body = content '??浠剁????瀹?'jmail.Prority = 1 '??浠剁??绱ф?ョ?搴?锛?1 涓烘??蹇?锛?5 涓烘????? 3 涓洪?璁ゅ??jmail.Send("Smtp.163.com") '?ц???浠跺????锛???杩???浠舵???″?ㄥ?闆??锛?

jmail.Close() '?抽??瀵矽薄

End Sub

%>

璋???浠g?? Call Sendemail(title,content,Email)

??瑕??? title,content,Email浼?杩??ュ氨??浠ヤ?.????涓?濂?澶?澶?????..

?ユ?:璁捐?″?跺??

http://www.dwww.cn/new/2006711198102521.html?

繼續閱讀