Gets the content type of the body of the e-mail message

Call Method
   Function GetFormat (NotificationID As String) As String
         Notification ID
Return value
         Message body format - "text" or "html"
VB.NET Example Switch to language: [C#]
  'Create personalizer object and Session object
  Dim pers As New PersonalizerRef.Personalizer()
  Dim sess As New SessionRef.Session()
  Dim SessionID As String = ""
      SessionID = pers.CreateSession("LogonName", "Password")
      'Create Mail notification proxy object
      Dim objMail As New MailRef.Mail()
      'Create server notification object
      Dim MailNotifID As String = sess.CreateMailNotification(SessionID)
      objMail.SetFrom(MailNotifID, "") 'set "from" address
      objMail.SetTo(MailNotifID, "") 'set destination address
      objMail.SetSubject(MailNotifID, "Notification Mail.") ' set subject
      objMail.SetFormat( MailNotifID, "text") ' set format of message body
      objMail.SetBody(MailNotifID, "You have made an appointment on 1:30pm.")
      ' Print message properties
  Catch e As Exception
      'Print exception message e.Message
  End Try