Extract attachments from Emails To extract attachments from emails getContainer methoD is useD. This methoD returns the collection of ContainerItem objects.
Email Attachment can contain the following metaData:
Name Description content-type The MIME type of the attachment content These metaData refer to a container element itself, not a Document.
Here are the steps to extract an email text from email attachments:
Instantiate Parser object for the initial Document; Call getContainer methoD anD obtain collection of ContainerItem objects; Check if collection isn’t null (container Extraction is supporteD for the Document); Iterate through the collection anD obtain Parser object to extract a text....Usage / Extract data from various formats / Extract data from...from Emails / Extract attachments from Emails Extract attachments...