<< Click to Display Table of Contents >>
AddAttachmentPart
Attach a file to the mail.
Prototype
void AddAttachmentPart(string FileFullPath, [string AttachFileName])
void AddAttachmentPart(object File, string AttachFileName)
Parameters
FileFullPath |
full path of the file |
AttachFileName |
attach file name |
File |
OZBinary object for the file to be attached |
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);
}
}
See Also