# Retrieving emails and extracting data from email files

This article explains how to retrieve emails and extract data from email files using the tPOP and tFileInputMail components.

The tPOP component fetches one or more email messages from a server using the POP3 or IMAP protocol, and the tFileInputMail component reads the header and content parts of a defined MIME or MSG email file.

It is recommended to use the IMAP protocol when reading email messages, since all operations on the emails are synchronized with the email server.

### In this section

* [Creating a Job for retrieving emails and extracting email data](https://help.qlik.com/talend/en-US/components/8.0/mail/tfileinputmail-tpop-tfilelist-tlogrow-creating-job-for-retrieving-emails-and-extracting-email-data-standard-component-create)
* [Retrieving emails from an email server](https://help.qlik.com/talend/en-US/components/8.0/mail/tfileinputmail-tpop-tfilelist-tlogrow-retrieving-emails-from-email-server-standard-component)
* [Extracting data from email files](https://help.qlik.com/talend/en-US/components/8.0/mail/tfileinputmail-tpop-tfilelist-tlogrow-extracting-data-from-email-files-standard-component)
* [Executing the Job to retrieve emails and extract email data](https://help.qlik.com/talend/en-US/components/8.0/mail/tfileinputmail-tpop-tfilelist-tlogrow-executing-job-to-retrieve-emails-and-extract-email-data-standard-component-press)

**Related reference**

* [tFileInputMail](https://help.qlik.com/talend/en-US/components/8.0/mail/tfileinputmail "Reads the standard key data of a given MIME or MSG email file.")

**Related information**

* [tLogRow](https://help.qlik.com/talend/en-US/components/8.0/logs-and-errors/tlogrow)
* [tPOP](https://help.qlik.com/talend/en-US/components/8.0/pop/tpop)
* [tFileList](https://help.qlik.com/talend/en-US/components/8.0/tfilelist/tfilelist)