CharsetOriginal Property
Gets the character set that was used for composing
the message.
This property makes sense only when you read an existing message and want to
know its original charset. By default, MailBee automatically converts messages
into Windows charset during parsing but this can be changed with CodepageMode
and Codepage properties.
In particular, if CodepageMode is 3, the message
retains its original charset and you can use CharsetOriginal
property to determine it.
| Value Type: | String | |
| Parameters: | None | |
| Remarks: | This property is read-only | |
Usage example:
Dim Mailer, Msg 'Using visual basic to create object Set Mailer = CreateObject("MailBee.POP3") 'Using ASP to create object 'Set Mailer = Server.CreateObject("MailBee.POP3") 'In ASP use Response.Write instead of MsgBox Mailer.LicenseKey = "put your license key here" Mailer.Connect "mailserver.com", 110, "MyName", "MyPassword" If Mailer.Connected Then If Mailer.MessageCount > 0 Then Mailer.CodepageMode = 3 Set Msg = Mailer.RetrieveSingleMessage(1) If Not Msg Is Nothing Then MsgBox "Original charset = " & Msg.CharsetOriginal MsgBox "Original body = " & Msg.BodyText End If End If Mailer.Disconnect End If
See Also:
Copyright 2002-2008, AfterLogic Corporation. All rights reserved.