AltBodyText Property


Contains alternative message body (if BodyText contains HTML-formatted body).

If the message is not HTML-formatted (i.e. BodyText contains plain text), AltBodyText is empty. If the message provides both bodies (HTML and plain), AltBodyText contains plain body taken from the message. If the message provides only HTML body, AltBodyText is generated by MailBee using GetPlainFromHtml method.


Value Type: String
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 MsgBox "Plain Body = " & Msg.AltBodyText
   End If
   Mailer.Disconnect
End If

See Also:

Message Object
BodyText Property
GetPlainFromHtml Method
ImportAltBodyText Method


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