Mail


GetFormat

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

Call Method
   String GetFormat () throw Exception
Return value
         Message body format - "text" or "html"
JAVA Example
  Personalizer pers = null;
  Session sess = null;
  try{
      //Create personalizer object and Session object
      pers = new Personalizer();
      sess = pers.CreateSession("LogonName", "Password");
      //Create Mail Notification
      Mail objMail = sess.CreateMailNotification();
      objMail.SetFrom("infomail@somebody.com") ; //set sender address
      objMail.SetTo("abonent@somebody.com") ; //set destination address
      objMail.SetSubject("Notification Mail.") ; //set subject
      objMail.SetFormat("text") ; //set format of message body
      objMail.SetBody("You have made an appointment on 1:30pm.");
      objMail.Send();
      // Retrieve message properties
      System.out.println(objMail.GetBody());
      System.out.println(objMail.GetSubject());
      System.out.println(objMail.GetFormat());
      System.out.println(objMail.GetFrom());
      //Release Mail Notification object
      objMail.Release();
      sess.Release();
  }
  catch(Exception e){
      //Print exception message e.Message
      System.out.println(e.Message);
      sess.Release();
  }