How to get email attachments from Dynamics CRM?

How to get email attachments from Dynamics CRM?

The email attachment is stored in ActivityMimeAttachment entity associated by Email.ActivityID=ActivityMimeAttachment.ObjectID and ActivityMimeAttachment.ObjectTypeCode=Email