上一篇文章 :: 下一篇文章 |
發表人 |
內容 |
cattseng 一級
註冊時間: 2006-04-03 文章: 1 來自: 中華民國
|
發表於: 星期一 四月 03, 2006 2:43 am 文章標題: JMAIL寄出的信件雷電收到都是亂碼 |
|
|
Set jmail = Server.CreateObject("JMail.Message")
jmail.ISOEncodeHeaders = false
jmail.ContentTransferEncoding = "base64"
jmail.Encoding = "base64"
jmail.Charset = "big5"
jmail.ContentType = "text/html"
jmail.Body = Body
使用ASP+jmail v4.4寄出html的信件, 使用msa.hinet.net收到outlook express可以正常顯示, 可是雷電的使用者outlook express卻變成這樣的亂碼
PCVATEFOR1VBR0U9IlZCU0NSSVBUIiBDT0RFUEFHRT0iOTUwIiU+DQo8aHRt bD4NCjxoZWFkPg0KPG1ldGEgaHR0cC1lcXVpdj0iQ29udGVudC1UeXBlIiBj b250ZW50PSJ0ZXh0L2h0bWw7IGNoYXJzZXQ9YmlnNSI+DQo8dGl0bGU+tUy8 0MNEpOWl8zwvdGl0bGU+DQo8L2hlYWQ+DQoNCjxib2R5Pg0KPHRhYmxlIHdp ZHRoPSI2MDAiIGJvcmRlcj0iMiIgY2VsbHBhZGRpbmc9IjIiIGNlbGxzcGFj aW5nPSIzIiBib3JkZXJjb2xvcj0iI0NDNjYwMCI+DQogIDx0cj4gDQogICAg PHRkPjx0YWJsZSB3aWR0aD0iNjAwIiBib3JkZXI9IjAiIGNlbGxwYWRkaW5n PSIwIiBjZWxsc3BhY2luZz0iMCI+DQogICAgICAgIDx0ciB2YWxpZ249ImJv dHRvbSI+IA0KICAgICAgICAgIDx0ZCB3aWR0aD0iNjklIiBoZWlnaHQ9IjU5 IiBhbGlnbj0icmlnaHQiPjxpbWcgc3JjPSJodHRwOi8vd3d3LmV6ZmluZC5j b20udHcvaW1hZ2VzL3Ntc2Vsb2dvLmdpZiIgd2lkdGg9IjE4NSIgaGVpZ2h0 PSI3MCI+PC90ZD4NCiAgICAgICAgPC90cj4NCiAgICAgICAgPHRyPiANCiAg ICAgICAgICA8dGQgaGVpZ2h0PSIxNiI+IDx0YWJsZSB3aWR0aD0iNjAwIj4N CiAgICAgICAgICAgICAgPHRyPiANCiAgICAgICAgICAgICAgICA8dGQgY29s c3Bhbj0iMiI+PGZvbnQgc2l6ZT0iMyIgZmFjZT0iVmVyZGFuYSwgQXJpYWws IEhlbHZldGljYSwgc2Fucy1zZXJpZiI+pc6k4TxzdHJvbmc+IA0KICAgICAg ICAgICAgICAgICAgPGZvbnQgY29sb3I9IiMwMDY2RkYiPrS/q9ik5TwvZm9u dD48L3N0cm9uZz4gsXqmbqFHIDxmb250IGZhY2U9IrLTqfrF6SI+IA0KICAg ICAgICAgICAgICAgICAgPHA+sWK4ubFLvVimcKRVoUc8L3A+DQogICAgICAg ICAgICAgICAgICA8L2ZvbnQ+PC9mb250PiA8dGFibGUgd2lkdGg9JzQwMCc+ DQogICAgICAgICAgICAgICAgICAgIDx0cj4gDQogICAgICAgICAgICAgICAg ICAgICAgPHRkIHdpZHRoPScxMDAnIGFsaWduPSdyaWdodCc+PGZvbnQgc2l6 ZT0nMycgZmFjZT0nVmVyZGFuYSwgQXJpYWwsIEhlbHZldGljYSwgc2Fucy1z ZXJpZic+pc6k4aFHPC9mb250PjwvdGQ+DQogICAgICAgICAgICAgICAgICAg ICAgPHRkIHdpZHRoPSczMDAnPjxmb250IGNvbG9yPScjQ0MwMDAwJyBmYWNl PSdWZXJkYW5hLCBBcmlhbCwgSGVsdmV0aWNhLCBzYW5zLXNlcmlmJz48c3Ry b25nPjxmb250IHNpemU9JzMnPiZuYnNwO0VGMDYwMTAxMDAwMTwvZm9udD48 L3N0cm9uZz48L2ZvbnQ+PC90ZD4NCiAgICAgICAgICAgICAgICAgICAgPC90 cj4NCiAgICAgICAgICAgICAgICAgICAgPHRyPiANCiAgICAgICAgICAgICAg ICAgICAgICA8dGQgd2lkdGg9JzEwMCcgYWxpZ249J3JpZ2h0Jz48Zm9udCBz aXplPSczJyBmYWNlPSdWZXJkYW5hLCBBcmlhbCwgSGVsdmV0aWNhLCBzYW5z LXNlcmlmJz6xYri5oUc8L2ZvbnQ+PC90ZD4NCiAgICAgICAgICAgICAgICAg ICAgICA8dGQgd2lkdGg9JzMwMCc+PGZvbnQgY29sb3I9JyNDQzAwMDAnIGZh Y2U9J1ZlcmRhbmEsIEFyaWFsLCBIZWx2ZXRpY2EsIHNhbnMtc2VyaWYnPjxz dHJvbmc+PGZvbnQgc2l6ZT0nMyc+Jm5ic3A7Y2F0PC9mb250Pjwvc3Ryb25n PjwvZm9udD48L3RkPg0KICAgICAgICAgICAgICAgICAgICA8L3RyPg0KICAg ICAgICAgICAgICAgICAgICA8dHI+IA0KICAgICAgICAgICAgICAgICAgICAg IDx0ZCBhbGlnbj0ncmlnaHQnPjxmb250IHNpemU9JzMnIGZhY2U9J1ZlcmRh bmEsIEFyaWFsLCBIZWx2ZXRpY2EsIHNhbnMtc2VyaWYnPrFLvVihRzwvZm9u dD48L3RkPg0KICAgICAgICAgICAgICAgICAgICAgIDx0ZD48Zm9udCBjb2xv cj0nI0NDMDAwMCcgZmFjZT0nVmVyZGFuYSwgQXJpYWwsIEhlbHZldGljYSwg c2Fucy1zZXJpZic+PHN0cm9uZz48Zm9udCBzaXplPSczJz4mbmJzcDsxOTQz PC9mb250Pjwvc3Ryb25nPjwvZm9udD48L3RkPg0KICAgICAgICAgICAgICAg ICAgICA8L3RyPg0KICAgICAgICAgICAgICAgICAgPC90YWJsZT4NCiAgICAg ICAgICAgICAgICAgIDxwPjxicj4NCiAgICAgICAgICAgICAgICAgICAgPGJy Pg0KICAgICAgICAgICAgICAgICAgPC9wPjwvdGQ+DQogICAgICAgICAgICAg IDwvdHI+DQogICAgICAgICAgICAgIDx0cj4gDQogICAgICAgICAgICAgICAg PHRkPjxmb250IHNpemU9IjMiIGZhY2U9IlZlcmRhbmEsIEFyaWFsLCBIZWx2 ZXRpY2EsIHNhbnMtc2VyaWYiPqZwprOl9KbzsN3DRKFBvdCsorjfuvSvuKFJ PC9mb250Pjw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g0KICAgICAgICAgICAgPC90YWJsZT48L3RkPg0K ICAgICAgICA8L3RyPg0KICAgICAgPC90YWJsZT48L3RkPg0KICA8L3RyPg0K PC90YWJsZT4NCjwvYm9keT4NCjwvaHRtbD4g
應該不是ASP或是JMAIL的問題吧
其他的伺服器收信都能顯示正常, 雷電MAILD哪裡可以調整?? |
|
回頂端 |
|
|
Arnor 究極の素還尊
註冊時間: 2001-11-07 文章: 13011 來自: TAIWAN
|
發表於: 星期一 四月 03, 2006 11:50 am 文章標題: |
|
|
你的寫法錯誤了..
正好好久沒寫asp 我就幫你試了一下..
網路上的範例都很精簡, 也沒說明參數意義..
我針對兩種寫法不同點來說明.
純文字信, 這裡不講, 因為最簡單, 我想你應該會,
網路上範例有.
因為Jmail 是個MIME 元件, 它就像是在填空一樣,
你給的資訊不對, 它就填不對的資訊去組了不對的信, 不會理解這樣的MIME對不對,
所以重點就在什麼樣的信給什麼樣的資訊讓它去填空.
仔細看標黑的部份..
<html>
<head>
<title>Confirmation </title>
<body>
<%
Set JMail = Server.CreateObject("JMail.SMTPMail")
' This is my local SMTP server
JMail.ServerAddress = "msa.hinet.net:25"
' This is me....
JMail.Sender = "xxx@xxxx.com"
JMail.Subject = "這是測試hinet"
jmail.ISOEncodeHeaders = false
jmail.ContentTransferEncoding = "base64"
jmail.Encoding = "base64"
jmail.Charset = "big5"
'有附件檔時要設 multipart/mixed
'jmail.ContentType = "multipart/mixed"
'無附件檔時要設 text/html
jmail.ContentType = "text/html"
' Get the recipients mailbox from a form (note the lack of a equal sign).
JMail.AddRecipient "xxx@xxxx.com"
JMail.AddRecipient "xxxxx@yahoo.com.tw"
JMail.AddRecipient "xxxxx@hotmail.com"
JMail.AddRecipient "xxxx@msa.hinet.net"
' The body property is both read and write.
' If you want to append text to the body you can
' use JMail.Body = JMail.Body & "Hello world!"
' or you can use JMail.AppendText "Hello World!"
' which in many cases is easier to use.
'純文字信用 .Body 參數, Html 信用 .HtmlBody
JMail.HTMLBody = "<html><body><b>這是測試</b> Your request has been approved" &_
"and the program is attached to this message</body></html>"
' 1 - highest priority (Urgent)
' 3 - normal
' 5 - lowest
JMail.Priority = 1
'附件檔
'JMail.AddAttachment "c:\test.JPG"
' Send it...
JMail.Execute
%>
<center>
An e-mail has been sent to your mailbox (<%=request.form("email")%>).
</center>
</body>
</html> _________________ *若是想問問題的話, 請務必不要塗改任何 IP, 網域資料, 您若不願貼上IP或網域, 請改以電子郵件來詢問. 謝謝您的配合.*
*若是回報疑似軟體的運行或邏輯或資料處理有誤的問題, 小弟很樂意去了解您的情況, 但請務必以最新版來做回報, 如果以郵件詢問, 請參考 http://www.raidenmaild.com/tw/feedback.html 的說明, 最好標題加個 RaidenMAILD 字樣, 才不致會遺漏了您的信唷. 謝謝您的配合^^*
*在版上發文請遵守網路禮儀, 並請持著虛心敘述問題請教他人, 凡發現違反的文, 均一律刪除為優先, 不另行通知喔.
*與使用者教學相長腦力激盪是我輩成就感的來源, 誠心希望您能不吝指教.
*雷電MAILD 知識庫文件 http://www.raidenmaild.com/tw/kb/
素還尊
Team John Long.
Email: arnor@raidenmaild.com
公司網站 http://www.raidenmaild.com/company/ |
|
回頂端 |
|
|
|
|
您 無法 在這個版面發表文章 您 無法 在這個版面回覆文章 您 無法 在這個版面編輯文章 您 無法 在這個版面刪除文章 您 無法 在這個版面進行投票
|
Powered by phpBB © 2001-2007 phpBB Group
|