Mail sender for Scheduler Read queue with code mail and send mails to recipient(s) to attach files into the mail, use queue like this:

msgCmd.attaches = [{entity: , attribute: 'document', id: , attachName: }, ...] for document image:

{ entity: 'doc_document', attribute: 'document', id: <doc_document ID>, attachName: "document.pdf" } for attached files:

{ entity: "doc_attachment", attribute: 'document', id: , attachName: }