Search The ForumSearch   RegisterRegister  LoginLogin

MailBee POP3

 AfterLogic Forum : MailBee POP3
Subject Topic: How Do I Know Character-Set? Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Ricky
Newbie
Newbie


Joined: 12 February 2007
Online Status: Offline
Posts: 12
Posted: 12 February 2007 at 1:11am | IP Logged Quote Ricky

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 View Ricky's Profile Search for other posts by Ricky
 
Andrew
AfterLogic Support
AfterLogic Support


Joined: 28 April 2006
Location: United States
Online Status: Offline
Posts: 1189
Posted: 12 February 2007 at 9:05am | IP Logged Quote Andrew

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 View Andrew's Profile Search for other posts by Andrew
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide