BodyFormat Property


Indicates format of main body of the message.

MailBee.POP3 can produce Message objects of the following body formats:

When creating the message to be sent using MailBee.SMTP object, the following subset of defined formats can be used:


Value Type: Long
Parameters: None 

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
        Select Case Msg.BodyFormat
        Case 0
          MsgBox "Plain text"
        Case 1
          MsgBox "HTML text"
        Case Else
          MsgBox "Other text"
        End Select
      End If
   End If
   Mailer.Disconnect
End If

See Also:

Message Object
BodyText Property


Copyright © 2002-2024, AfterLogic Corporation. All rights reserved.