Author |
|
Ricky Newbie
Joined: 12 February 2007
Online Status: Offline Posts: 12
|
Posted: 12 February 2007 at 1:11am | IP Logged
|
|
|
Dear,
I have A serious problem..
How do I know the character-set when retriving A New Mail?
Below Two Codes Are My Codes(ASP).. But These Two Sample Codes are not working...
[code 1]
=========================
Set objPOP3 = Server.CreateObject("MailBee.POP3")
objPOP3.LicenseKey = "License Key..."
objPOP3.ServerName = "Server Name.."
objPOP3.UserName = "UserName..."
objPOP3.Password = "PassWord.."
Set Msg = objPOP3.RetrieveHeaders(1)
If Not Msg Is Nothing Then
Response.Write "CharSet : " & Msg.charset '//// Nothing Shows..
End If
=========================
[code 2]
=========================
Set objPOP3 = Server.CreateObject("MailBee.POP3")
objPOP3.LicenseKey = "License Key..."
objPOP3.ServerName = "Server Name.."
objPOP3.UserName = "UserName..."
objPOP3.Password = "PassWord.."
Set Msg = objPOP3.RetrieveHeaders(1)
If Not Msg Is Nothing Then
strCharset = Msg.GetHeader("charset")
End If
Response.Write strCharset '//// Nothing Shows..
=========================
Is there another way to find out character set?
Help~~
|
Back to Top |
|
|
Andrew AfterLogic Support
Joined: 28 April 2006 Location: United States
Online Status: Offline Posts: 1189
|
Posted: 12 February 2007 at 9:05am | IP Logged
|
|
|
As described in MailBee Objects documentation, Message.Charset property is empty for messages which are loaded from disk or received from mail server. If you've not changed Message.CodepageMode and Message.Codepage properties, MailBee Objects automatically converts such messages to default Windows charset (and original message charset doesn't make sense). The latest build of MailBee Objects (pre release of MailBee Objects 5.5) provides Message.CharsetOriginal property which allows determining original charset of the message (but the message is already converted to default Windows charset as described above).
Best regards,
Andrew
|
Back to Top |
|
|