---
title: Extract Data from Emails
date: 2025-12-29T09:05:35Z
modified: 2026-06-11T11:25:41Z
permalink: "https://ezintegrations.ai/docs/how-to-use-email-as-data-source/"
type: docs
status: publish
excerpt: ""
wpid: 2863
doc_category:
  - Data Source- Email
author: Arun Thakur
---

## Overview

The Email Data Source in eZintegrations allows users to extract structured and unstructured content directly from email accounts.

Using this feature, users can retrieve sender information, subject lines, message bodies, and embedded images, and process them within an Integration Bridge.

Extracted data is returned in configurable formats to support different processing and integration needs.

---

## When to Use

Use Email as a Data Source when business data is received through email and must be integrated into automated workflows.

- Processing support or inquiry emails
- Extracting reports sent via email
- Automating email-based data ingestion
- Monitoring inboxes for business events
- Integrating legacy email-driven systems

---

## How It Works

The Email Data Source connects securely to a configured mailbox using IMAP settings.

Once connected, the system retrieves incoming emails and extracts content based on the selected output format.

The extracted data is then stored in the integration pipeline for further operations and delivery to target systems.

---

## Supported Output Formats

Email content can be extracted in the following formats.

- **Text Format** – Extracts sender address, subject, and body as plain text.
- **HTML Format** – Extracts sender address, subject, and body in HTML format.
- **Base64 Encoded Format** – Encodes the entire email content, including images, in Base64.

For all output types, embedded images are extracted in Base64 format when present.

---

## Steps to Configure Email Data Source

### Step 1: Select Source Type

Select **Email** from the Source Type dropdown.

### Step 2: Enter Email Address

Provide the email address from which data should be retrieved.

Example:

**username@gmail.com**

### Step 3: Enter Password

Provide the password for the configured email account.

Example:

**password@123**

### Step 4: Configure Mail Server

Enter the mail server address for your email provider.

Examples:

- **Gmail**: imap.gmail.com
- **Outlook**: outlook.office365.com

### Step 5: Enter Port Number

Provide the IMAP port number for your mail server.

Example:

**993**

### Step 6: Select Output Type

Choose the preferred output format from the dropdown.

- **Text** – Plain text extraction
- **HTML** – HTML-based extraction
- **Base64** – Encoded extraction including images

Select the format based on downstream processing requirements.

---

## Expected Output

After successful configuration, the Email Data Source extracts the following information.

- Sender email address
- Email subject
- Email body
- Embedded images (Base64 encoded)
- Full message content (for Base64 output)

This data is made available for operations and target integrations.

---

## Frequently Asked Questions

 ### 1. What is Email Data Source in eZintegrations?

 It is a source connector that allows users to extract content from email accounts and process it within Integration Bridges.

 

 

  ### 2. Which output format should I choose?

 Use Text for simple processing, HTML for formatted content, and Base64 when full message and images are required.

 

 

  ### 3. Are images always extracted?

 Yes. If images are present in the email, they are extracted in Base64 format for all output types.

 

 

  ### 4. Can I connect to Gmail and Outlook accounts?

 Yes. Gmail and Outlook are supported using their respective IMAP server configurations.

 

 

  ### 5. Is email authentication required?

 Yes. Valid email credentials are required to access and retrieve mailbox data.

 

 

 ---

## Benefits

- Automated email data extraction
- Multiple output format support
- Easy integration with workflows
- Centralized email data processing
- Reduced manual data handling

---

## Notes

- Ensure IMAP access is enabled for the email account.
- Protect email credentials securely.
- Verify mail server and port details.
- Test configuration before production deployment.
- Review provider security policies for third-party access.

## Topics

**Docs Categories:** [Data Source- Email](https://ezintegrations.ai/wp-content/uploads/wp-mfa-exports/taxonomy/doc_category/data-source-email.md)