Send mail message

Call Method
   Sub Send (NotificationID As String)
         Notification ID
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)
      'set required parameters
      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.")
      'invoke method
  Catch e As Exception
      'Print exception message e.Message
  End Try