> ## Documentation Index
> Fetch the complete documentation index at: https://deepline.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Lemlist: Connect Email Account

> Connect an SMTP/IMAP sending mailbox to your Lemlist team. Includes SDK V2 guidance, input constraints, response fields, and Deepline credit cost.

Connect an SMTP/IMAP sending mailbox to your Lemlist team.

> [!NOTE]
>
> Tool ID: `lemlist_connect_email_account`

## Run this action

Use the TypeScript SDK for one call. Use `ctx.tools.execute(...)` inside a Play for durable calls, scheduled calls, or CSV processing.

```ts theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'lemlist_connect_email_account',
  {
    "sender_name": "Example",
    "sender_email": "jane.doe@example.com",
    "smtp_host": "api.example.com",
    "smtp_port": 123,
    "smtp_login": "example",
    "smtp_password": "YOUR_PASSWORD",
    "imap_host": "api.example.com",
    "imap_port": 123,
    "imap_login": "example",
    "imap_password": "YOUR_PASSWORD"
  },
);

console.log(result.toolResponse.raw);
```

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute lemlist_connect_email_account --input '{
  "sender_name": "Example",
  "sender_email": "jane.doe@example.com",
  "smtp_host": "api.example.com",
  "smtp_port": 123,
  "smtp_login": "example",
  "smtp_password": "YOUR_PASSWORD",
  "imap_host": "api.example.com",
  "imap_port": 123,
  "imap_login": "example",
  "imap_password": "YOUR_PASSWORD"
}' --json
```

## Example response

The static output schema lacks the details for a reliable example. Use `deepline describe lemlist_connect_email_account --json` for the complete live contract.

## Input reference

Connect an SMTP/IMAP email account.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.sender_name` | `string` | Yes | — | Display name for the sender Minimum length: 1. |
| `payload.sender_email` | `string` | Yes | — | Sender email address Format: `email`. Minimum length: 1. |
| `payload.smtp_host` | `string` | Yes | — | SMTP server hostname Minimum length: 1. |
| `payload.smtp_port` | `integer` | Yes | — | SMTP port (e.g. 587, 465) Minimum: 1. Maximum: 65535. |
| `payload.smtp_login` | `string` | Yes | — | SMTP login username Minimum length: 1. |
| `payload.smtp_password` | `string` | Yes | — | SMTP login password Minimum length: 1. |
| `payload.imap_host` | `string` | Yes | — | IMAP server hostname Minimum length: 1. |
| `payload.imap_port` | `integer` | Yes | — | IMAP port (e.g. 993) Minimum: 1. Maximum: 65535. |
| `payload.imap_login` | `string` | Yes | — | IMAP login username Minimum length: 1. |
| `payload.imap_password` | `string` | Yes | — | IMAP login password Minimum length: 1. |
| `payload.smtp_secure` | `boolean` | No | — | Use TLS for SMTP |
| `payload.imap_secure` | `boolean` | No | — | Use TLS for IMAP |
| `payload.user_id` | `string` | No | — | Assign to specific user ID |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Connect an SMTP/IMAP email account.",
    "properties": {
      "sender_name": {
        "type": "string",
        "description": "Display name for the sender",
        "minLength": 1
      },
      "sender_email": {
        "type": "string",
        "description": "Sender email address",
        "minLength": 1,
        "format": "email"
      },
      "smtp_host": {
        "type": "string",
        "description": "SMTP server hostname",
        "minLength": 1
      },
      "smtp_port": {
        "type": "integer",
        "description": "SMTP port (e.g. 587, 465)",
        "minimum": 1,
        "maximum": 65535
      },
      "smtp_login": {
        "type": "string",
        "description": "SMTP login username",
        "minLength": 1
      },
      "smtp_password": {
        "type": "string",
        "description": "SMTP login password",
        "minLength": 1
      },
      "imap_host": {
        "type": "string",
        "description": "IMAP server hostname",
        "minLength": 1
      },
      "imap_port": {
        "type": "integer",
        "description": "IMAP port (e.g. 993)",
        "minimum": 1,
        "maximum": 65535
      },
      "imap_login": {
        "type": "string",
        "description": "IMAP login username",
        "minLength": 1
      },
      "imap_password": {
        "type": "string",
        "description": "IMAP login password",
        "minLength": 1
      },
      "smtp_secure": {
        "type": "boolean",
        "description": "Use TLS for SMTP"
      },
      "imap_secure": {
        "type": "boolean",
        "description": "Use TLS for IMAP"
      },
      "user_id": {
        "type": "string",
        "description": "Assign to specific user ID"
      }
    },
    "required": [
      "sender_name",
      "sender_email",
      "smtp_host",
      "smtp_port",
      "smtp_login",
      "smtp_password",
      "imap_host",
      "imap_port",
      "imap_login",
      "imap_password"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `unknown` | Yes | — | Provider response payload. |
| `result.meta` | `object` | No | — | Additional response metadata (status, paging). |

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "description": "Provider response payload."
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.

## Related documentation

* [Lemlist provider guide](https://deepline.com/docs/providers/lemlist/guide.md)
* [SDK V2 quickstart](https://deepline.com/docs/sdk-v2/quickstart.md)
* [SDK reference](https://deepline.com/docs/sdk-v2/sdk-reference.md)
* [Run tools across a CSV](https://deepline.com/docs/sdk-v2/batch-csv.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.