// Attachments attachments = new AttachmentsProxy(message.getAttachments());
// Attachment attachment = new AttachmentProxy(attachments.add(null, null, null, null));
// attachment.setSource("c:\\temp\\attach.doc");
// save changes to the message
message.Update(new JIVariant(true), new JIVariant(true));
// and finally, send the message
message.Send(JIVariant.OPTIONAL_PARAM(),JIVariant.OPTIONAL_PARAM(), JIVariant.OPTIONAL_PARAM());