SpecialBodyContentType Property


Contains the value of Content-Type header of the non-standard text body part of the message.

The example of this value is text/calendar; method=REQUEST; name="meeting.ics". If the message doesn't have such kind of body, this value is an empty string.

To get or set the contents of such body, use SpecialBodyText property.

To get or set other headers of such body, use SpecialBodyHeaders property. However, you do not need to set Content-Transfer-Encoding header. MailBee adds it automatically if required.


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 "Special body type = " & Msg.SpecialBodyContentType
   End If
   Mailer.Disconnect
End If

See Also:

SpecialBodyText Property
SpecialBodyHeaders Property


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