[問題] ASP 使用 Jmail 發送日文內容信件
大家好
目前使用 Jmail 發送日文信件
編碼皆使用 utf-8
但發出的信件收信者看到的日文內容皆為亂碼
查過網路上相關文章
大部分建議改為日文編碼
但使用後仍為亂碼
不知道要如何解決這個問題?
懇請板上高手解答
補上程式碼如下
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<%
Response.CodePage = 65001
Response.CharSet = "utf-8"
Set JMail= Server.CreateObject("JMail.SMTPMail")
JMail.ServerAddress = "Mail Server"
jmail.Sender = request("email") '寄件人電子郵件
jmail.SenderName = "寄件人姓名"
jmail.Subject = "信件標題"
JMail.Body = mailbody
jmail.silent = true
JMail.ISOEncodeHeaders = False
JMail.ContentType = "text/html"
JMail.ContentTransferEncoding = "base64"
JMail.Charset = "utf-8"
JMail.Logging = true
JMail.Priority = 3
strMailBody = request("content") '日文內容
Jmail.htmlbody = strMailBody
%>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 59.120.88.194
→
09/10 21:50, , 1F
09/10 21:50, 1F
※ 編輯: vampire1128 來自: 59.120.88.194 (09/11 09:55)
→
09/14 01:16, , 2F
09/14 01:16, 2F