So here the issue is with the inline attachments because they need type file but you are using attachments.itemId
attachments.itemId
: Only used if the attachment type is set to item
. The EWS item ID of the existing e-mail you want to attach to the new message. This is a string up to 100 characters.