<< Click to Display Table of Contents >>

SendSync

동기 방식으로 메일을 전송합니다.

Prototype

bool SendSync()

Reference

메일 전송 성공 여부를 리턴합니다.

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");

       var isResult = mail.SendSync();

       _DEBUG("isOK="+isResult);

       mail.Release();

   } catch(e) {

       _ERROR(e);

   }

}