ubqMailJob

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: , atachName: }, ...] for document image:

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

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