In the events of SEND_MAIL, I was expecting in the attachmentInfo a sequence of name,type and size. Nevertheless, in the current events, only type is sent as attachmentInfo. I fixed this in the server side, so if only type is sent, the server composes the info in the event correctly