<< Click to Display Table of Contents >>

SetContext

메일 내용을 설정합니다.

Prototype

void SetContext(string Context, [bool IsHTML])

Parameters

Context

메일 내용

IsHTML

메시지 형식을 HTML로 설정할지 여부

값을 설정하지 않을 경우 False로 적용됨

Reference

IsHTML을 False로 설정할 경우 메시지 형식이 일반 텍스트로 설정됩니다.

Example

function mailTestAlias(){

   try {

       var mail = OZCreator.GetBuiltInObject(OZBuiltInObject.MAIL);

       mail.SetAlias("ozmail");

       mail.SetRecipients(RecipientTypeConst.TO, "oz@forcs.com");

       mail.SetRecipients(RecipientTypeConst.CC, "forcs@forcs.com");

       mail.SetSubject("Mail Subject");

       mail.SetContext("Mail Context");

       mail.AddAttachmentPart("d:/sample.xls");

       mail.Send();

       mail.Release();

   } catch(e) {

       _ERROR(e);

   }

}