SpecialBodyHeaders Property


Specifies additional headers to be put into the header section of the non-standard text body part of the message.

Use this property to add specific headers to the non-standard text body part (such as vCal item) of the message being composed.

For received messages (messages being parsed rather than created), this property is set to an empty string. This is also the default value of this property.

To get or set the contents of the non-standard body, use SpecialBodyText property. To get or set Content-Type of such body, use SpecialBodyContentType property.


Value Type: String
Parameters: None 

Usage example:

Dim Mailer
'Using visual basic to create object
Set Mailer = CreateObject("MailBee.SMTP")
'Using ASP to create object
'Set Mailer = Server.CreateObject("MailBee.SMTP")
'In ASP use Response.Write instead of MsgBox
Mailer.LicenseKey = "put your license key here"
Mailer.ServerName = "mail.server.com"
If Mailer.Connect Then
  Mailer.Message.ToAddr = "bill@yoursite.com"
  Mailer.Message.FromAddr = "joe@mysite.com"
  Mailer.Message.Subject = "Meeting request"
  Mailer.Message.SpecialBodyContentType = "text/calendar; method=REQUEST; name=""meeting.ics"""
  Mailer.Message.SpecialBodyHeaders = "Content-Class: urn:content-classes:calendarmessage" & vbCrLf
  Mailer.Message.SpecialBodyText = "BEGIN:VCALENDAR" & vbCrLf & "METHOD:REQUEST" & vbCrLf & "etc..."
  Mailer.Send
  Mailer.Disconnect
End If

See Also:

SpecialBodyText Property
SpecialBodyContentType Property


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