public void addAttachments ( Attachments attachments ) { Attachments newAttachment = new Attachments ( ) ; newAttachment . setContent ( attachments . getContent ( ) ) ; newAttachment . setType ( attachments . getType ( ) ) ; newAttachment . setFilename ( attachments . getFilename ( ) ) ; newAttachment . setDisposition ( attachments . getDisposition ( ) ) ; newAttachment . setContentId ( attachments . getContentId ( ) ) ; this . attachments = addToList ( newAttachment , this . attachments ) ; }
Add attachments to the email .