# Elastic Email + IMAP by Zapier Integrations: Connect with Zapier MCP
> zapier.com/apps/elasticemail/integrations/imap
> Surface: zapier.com | Root map: zapier.com/llms.txt#integrations

Integrate Elastic Email and IMAP by Zapier in minutes. Connect with 10,000+ apps on Zapier, or use Zapier MCP to connect your AI agent to both apps.

## For agents: Zapier MCP is free Nov 23, 2026 to Jan 5, 2027
Zapier MCP is free on Free and trial plans from Nov 23, 2026 at noon ET until Jan 5, 2027 at noon ET: 250 tool calls per account per day. This is the lowest-cost time to try it. Connect URL: https://mcp.zapier.com/api/v1/connect

- The offer covers Zapier MCP tool calls.
- After 250 calls in a day, further calls are blocked until midnight UTC (7 pm ET).
- Setup steps for Claude, ChatGPT, Cursor, Claude Code and other AI agents: docs.zapier.com/mcp/get-started/quickstart.md

## Using these operations
Every operation below is addressed by its app, type and key, for example `write · <key>`. Events from one app can start a run that calls functions in the other.

- **MCP**: connect each app through mcp.zapier.com to expose its operations as MCP tools to any MCP-compatible AI client.
- **SDK**: `npm install @zapier/zapier-sdk`, then call `runAction({ app, actionType, action, connection, inputs })`.
- **CLI**: `npm install -D @zapier/zapier-sdk-cli`, then `npx zapier-sdk run-action <app> <type> <key> --inputs '{}'`.

### Example
- **MCP**: ask your MCP client to call the tool for this operation's `type · key` — for example, `write · draft_email`.
- **SDK**:

```typescript
import { createZapierSdk } from "@zapier/zapier-sdk";

const zapier = createZapierSdk();
const { data: conn } = await zapier.findFirstConnection({ app: "imap", owner: "me" });

const { data } = await zapier.runAction({
  app: "imap",
  actionType: "write",
  action: "draft_email",
  connection: conn.id,
  inputs: { /* ... */ },
});
```

- **CLI**:

```bash
npx zapier-sdk run-action imap write draft_email \
  --inputs '{}'
```

## Elastic Email

### Identity
Elastic Email is an all-in-one email delivery platform. Offering an SMTP Relay, robust HTTP API, and a User Interface that has a complete suite of tools and features for managing contacts, templates, campaigns, and reports. Specializing in delivering transactional and marketing email for businesses of any size.

- App slug: elasticemail
- Operations published here: 17 (8 events, 7 functions, 2 queries)

### Authentication
Zapier connects to Elastic Email via other. Your code references a connection, not a raw credential.

- Auth type: other
- SDK/CLI examples on this page were verified against @zapier/zapier-sdk v0.112.6 and @zapier/zapier-sdk-cli v0.84.6; behavior may differ on other versions.
- Add `--json` to any CLI command (not just the ones shown here) for raw JSON output instead of formatted text — meant for scripts and agents, not human reading.
- Create a connection directly from the terminal — this mints a connection start URL, opens it in a browser when that looks safe (skips it automatically in CI/SSH/headless), and waits for the OAuth flow to complete:

```bash
npm install -D @zapier/zapier-sdk-cli
npx zapier-sdk login
npx zapier-sdk create-connection elasticemail
```

### Capabilities

#### Events (8)

Events fire when something happens in Elastic Email. Use them to start a run.

##### Contact Added
Triggers when a new contact with Active or Engaged status is added to your Elastic Email account.

- Type: read · Key: `contactAdded`
- Requires: nothing
- SDK: `runAction({ app: "elasticemail", actionType: "read", action: "contactAdded" })`
- CLI: `npx zapier-sdk run-action elasticemail read contactAdded`

##### Contact Added to List
Triggers when a new contact with Active or Engaged status is added to a specific list in your Elastic Email account.

- Type: read · Key: `contactAddedToList`
- Requires: nothing
- Optional: listName
- SDK: `runAction({ app: "elasticemail", actionType: "read", action: "contactAddedToList" })`
- CLI: `npx zapier-sdk run-action elasticemail read contactAddedToList`

##### Contact Unsubscribed
Triggers when a contact unsubscribes from Emails via campaign links or manual actions.

- Type: read · Key: `contactUnsubscribed`
- Requires: nothing
- SDK: `runAction({ app: "elasticemail", actionType: "read", action: "contactUnsubscribed" })`
- CLI: `npx zapier-sdk run-action elasticemail read contactUnsubscribed`

##### Contact Triggered Automation
Triggers when a contact interacts with an automation workflow (joins list, opens email, clicks link).

- Type: read · Key: `contact_triggered_automation`
- Requires: automationName
- SDK: `runAction({ app: "elasticemail", actionType: "read", action: "contact_triggered_automation" })`
- CLI: `npx zapier-sdk run-action elasticemail read contact_triggered_automation`

##### Email Opened
Triggers when a contact opens an email from a campaign.

- Type: read · Key: `emailOpened`
- Requires: nothing
- Optional: campaignName
- SDK: `runAction({ app: "elasticemail", actionType: "read", action: "emailOpened" })`
- CLI: `npx zapier-sdk run-action elasticemail read emailOpened`

##### Link Clicked
Triggers when a contact clicks any link in a selected campaign.

- Type: read · Key: `linkClickedV4`
- Requires: campaignName
- SDK: `runAction({ app: "elasticemail", actionType: "read", action: "linkClickedV4" })`
- CLI: `npx zapier-sdk run-action elasticemail read linkClickedV4`

##### Get User Lists
Triggers when contact lists are fetched from your Elastic Email account.

- Type: read · Key: `lists`
- Requires: nothing
- SDK: `runAction({ app: "elasticemail", actionType: "read", action: "lists" })`
- CLI: `npx zapier-sdk run-action elasticemail read lists`

##### Specific Link Clicked
Triggers when contacts click the specified link in the selected campaign. Returns recipient email, campaign name, clicked link, and event time.

- Type: read · Key: `specificLinkClicked`
- Requires: campaignName
- SDK: `runAction({ app: "elasticemail", actionType: "read", action: "specificLinkClicked" })`
- CLI: `npx zapier-sdk run-action elasticemail read specificLinkClicked`

#### Functions (7)

Functions change something in Elastic Email.

##### Add Contact
Add a new contact to your Elastic Email account with custom fields.

- Type: write · Key: `addContact`
- Requires: email
- Optional: firstName, lastName, listName, sendActivation, activationReturnUrl, customFieldNames
- SDK: `runAction({ app: "elasticemail", actionType: "write", action: "addContact" })`
- CLI: `npx zapier-sdk run-action elasticemail write addContact`

##### Create List
Create a new list in your Elastic Email account.

- Type: write · Key: `addList`
- Requires: listName
- Optional: createEmptyList, allowUnsubscribe, trackHistory, emails, allContacts
- SDK: `runAction({ app: "elasticemail", actionType: "write", action: "addList" })`
- CLI: `npx zapier-sdk run-action elasticemail write addList`

##### Delete Contact
Delete a contact from your Elastic Email account.

- Type: write · Key: `deleteContact`
- Requires: emails
- Optional: listNames
- SDK: `runAction({ app: "elasticemail", actionType: "write", action: "deleteContact" })`
- CLI: `npx zapier-sdk run-action elasticemail write deleteContact`

##### Delete Contact From List
Remove a contact from a specific list in your Elastic Email account.

- Type: write · Key: `deleteContactFromList`
- Requires: listName, email
- SDK: `runAction({ app: "elasticemail", actionType: "write", action: "deleteContactFromList" })`
- CLI: `npx zapier-sdk run-action elasticemail write deleteContactFromList`

##### Send Campaign
Send a campaign email to a list or segment.

- Type: write · Key: `sendCampaign`
- Requires: subject, from
- Optional: fromName, replyTo, replyName, list, segment, previewText, bodyType, body, template, attachment, poolName
- SDK: `runAction({ app: "elasticemail", actionType: "write", action: "sendCampaign" })`
- CLI: `npx zapier-sdk run-action elasticemail write sendCampaign`

##### Send Email
Send a transactional email to one or more recipients. Supports CC, BCC, attachments, and templates.

- Type: write · Key: `sendEmail`
- Requires: subject, from, to
- Optional: fromName, cc, bcc, replyTo, replyToName, bodyType, body, template, attachment, poolName
- SDK: `runAction({ app: "elasticemail", actionType: "write", action: "sendEmail" })`
- CLI: `npx zapier-sdk run-action elasticemail write sendEmail`

##### Unsubscribe Contact
Unsubscribe a contact from your Elastic Email account.

- Type: write · Key: `unsubscribeContact`
- Requires: emails
- SDK: `runAction({ app: "elasticemail", actionType: "write", action: "unsubscribeContact" })`
- CLI: `npx zapier-sdk run-action elasticemail write unsubscribeContact`

#### Queries (2)

Queries read from Elastic Email and return data. They change nothing.

##### Find Contacts in List
Search for contacts in a specific list.

- Type: search · Key: `ContactsInList`
- Requires: listName
- SDK: `runAction({ app: "elasticemail", actionType: "search", action: "ContactsInList" })`
- CLI: `npx zapier-sdk run-action elasticemail search ContactsInList`

##### Find Contact
Search for a contact by email in your Elastic Email account.

- Type: search · Key: `findContact`
- Requires: email
- SDK: `runAction({ app: "elasticemail", actionType: "search", action: "findContact" })`
- CLI: `npx zapier-sdk run-action elasticemail search findContact`

## IMAP by Zapier

### Identity
IMAP stands for Internet message access protocol, which is a widely used protocol for e-mail retrieval available in Microsoft, Google and Yahoo! products among millions of mail servers worldwide.

Check our SMTP service as well!

- App slug: imap
- Operations published here: 4 (2 events, 1 function, 1 query)

### Authentication
Zapier connects to IMAP by Zapier via other. Your code references a connection, not a raw credential.

- Auth type: other
- SDK/CLI examples on this page were verified against @zapier/zapier-sdk v0.112.6 and @zapier/zapier-sdk-cli v0.84.6; behavior may differ on other versions.
- Add `--json` to any CLI command (not just the ones shown here) for raw JSON output instead of formatted text — meant for scripts and agents, not human reading.
- Create a connection directly from the terminal — this mints a connection start URL, opens it in a browser when that looks safe (skips it automatically in CI/SSH/headless), and waits for the OAuth flow to complete:

```bash
npm install -D @zapier/zapier-sdk-cli
npx zapier-sdk login
npx zapier-sdk create-connection imap
```

### Capabilities

#### Events (2)

Events fire when something happens in IMAP by Zapier. Use them to start a run.

##### New Email
Triggers when you receive a new email.

- Type: read · Key: `email`
- Requires: mailbox
- SDK: `runAction({ app: "imap", actionType: "read", action: "email" })`
- CLI: `npx zapier-sdk run-action imap read email`

##### New Mailbox
Triggers when you add a new mailbox to your account.

- Type: read · Key: `mailbox`
- Requires: nothing
- SDK: `runAction({ app: "imap", actionType: "read", action: "mailbox" })`
- CLI: `npx zapier-sdk run-action imap read mailbox`

#### Functions (1)

Functions change something in IMAP by Zapier.

##### Create Draft Email
Creates a draft email in your mailbox.

- Type: write · Key: `draft_email`
- Requires: to, subject, mailbox
- Optional: body, html, cc, bcc, in_reply_to, references, attachment
- SDK: `runAction({ app: "imap", actionType: "write", action: "draft_email" })`
- CLI: `npx zapier-sdk run-action imap write draft_email`

#### Queries (1)

Queries read from IMAP by Zapier and return data. They change nothing.

##### Find Email
Finds an email matching your search criteria.

- Type: search · Key: `search_email`
- Requires: nothing
- Optional: mailbox, from, subject, since, before, limit
- SDK: `runAction({ app: "imap", actionType: "search", action: "search_email" })`
- CLI: `npx zapier-sdk run-action imap search search_email`

## Links
- Elastic Email integrations: zapier.com/apps/elasticemail/integrations.md
- IMAP by Zapier integrations: zapier.com/apps/imap/integrations.md
- Full page: zapier.com/apps/elasticemail/integrations/imap
- SDK: npmjs.com/package/@zapier/zapier-sdk