RawBody Property
Contains whole message (including bodies, attachments,
headers) as MIME-formatted text.
If the message was returned by MailBee.POP3 object, RawBody holds
message source as it came from POP3 server (at least while Locked property
stays in True state).
If the message is created (not received by MailBee.POP3), RawBody
will be generated by MailBee by converting values of all properties into MIME
format. Also, RawBody might be recreated if the message was received
by MailBee.POP3 and then Message.Locked property was manually
set to False.
Also, you can assign value of RawBody manually. However, make sure you
pass correct MIME message in the value.
| Value Type: | String | |
| Parameters: | None | |
| Remarks: | If the message was received using MailBee.POP3 object, you cannot change this property unless Message.Locked property is set to False | |
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 Set Msg = Mailer.RetrieveSingleMessage(1) If Not Msg Is Nothing Then MsgBox "RawBody = " & Msg.RawBody End If Mailer.Disconnect End If
See Also:
Message Object
Locked Property
Copyright 2002-2008, AfterLogic Corporation. All rights reserved.