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

# Send Email Node

<div className="block dark:hidden">
  <Frame>
    <div className="p-1">
      <img src="https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/email-action-cover.svg?fit=max&auto=format&n=zHQFKodWEnahK9ly&q=85&s=39437fa2f4f099f0891676be6a7c966f" alt="Send Email action interface on light mode" className="rounded-[14px]" width="1048" height="720" data-path="images/dark_mode/email-action-cover.svg" />
    </div>
  </Frame>
</div>

<div className="hidden dark:block">
  <Frame>
    <div className="p-1">
      <img src="https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/email-action-cover.svg?fit=max&auto=format&n=zHQFKodWEnahK9ly&q=85&s=39437fa2f4f099f0891676be6a7c966f" alt="Send Email action interface on dark mode" className="rounded-[14px]" width="1048" height="720" data-path="images/dark_mode/email-action-cover.svg" />
    </div>
  </Frame>
</div>

The **Send Email** node lets your AI agent send an email automatically when a condition is met during (or after) a conversation, for example a confirmation, a quote, or follow-up information.

## Fields to configure

Open the node and fill in the fields below to define who receives the email and what it contains.

<Frame>
  <img src="https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/email-action-node-config.png?fit=max&auto=format&n=zHQFKodWEnahK9ly&q=85&s=81897071318cea4f2f0cc37d5c8d7634" alt="Send Email node configuration on the platform" className="rounded-[14px]" width="5120" height="2880" data-path="images/dark_mode/email-action-node-config.png" />
</Frame>

| Field              | Description                                                                                                                                                                                                 |
| ------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **From**           | The sender account the email is sent from. Pick a connected account, click **Connect Email** to add one, or use **Edit** to update an existing connection. If none is selected, the default sender is used. |
| **To**             | The recipient address(es). Type addresses directly or insert variables (for example an email collected earlier in the conversation). At least one recipient is required.                                    |
| **CC** (optional)  | Additional recipients in copy. Supports the same direct input and variables as **To**.                                                                                                                      |
| **Subject**        | The subject line of the email. Insert variables to personalize it (for example the prospect's first name).                                                                                                  |
| **Content (Body)** | The body of the email, using a rich text (HTML) editor. Insert variables to include details gathered during the conversation, such as a price quote or a meeting time.                                      |

***

<Card title="Connecting your email">
  <div style={{ marginTop: '16px' }}>
    <Frame>
      <img src="https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/email-action-provider-config.png?fit=max&auto=format&n=zHQFKodWEnahK9ly&q=85&s=f36aa0e73fd5336f36dc2c171f32b42d" alt="Email provider configuration panel" className="rounded-[14px]" width="5120" height="2880" data-path="images/dark_mode/email-action-provider-config.png" />
    </Frame>
  </div>

  Pearl sends emails **from your own business address** using one of three providers. Pick the one that matches your setup.

  <Tabs>
    <Tab title="Gmail">
      <div style={{ display: 'flex', alignItems: 'center', gap: '12px', marginTop: 0, marginBottom: '16px' }}>
        <img src="https://mintcdn.com/nlpearl/yjNN1PpSs3yxoZOQ/logo/gmail_icon.webp?fit=max&auto=format&n=yjNN1PpSs3yxoZOQ&q=85&s=bbf0f36ad5969429117b5cc74af1a273" alt="Gmail" width="36" height="36" style={{ width: '36px', height: '36px', flexShrink: 0, margin: 0, borderRadius: '8px', border: '1px solid rgba(128,128,128,0.25)', padding: '6px', objectFit: 'contain' }} data-path="logo/gmail_icon.webp" />

        <span className="text-lg font-semibold text-gray-900 dark:text-white" style={{ margin: 0, lineHeight: 1.2 }}>Send from your Gmail address</span>
      </div>

      <Steps>
        <Step title="Select the provider">
          Choose **Gmail** from the provider list.
        </Step>

        <Step title="Enter your sender email">
          Enter your Gmail address in **Sender Email**.
        </Step>

        <Step title="Add an app-password">
          Enter a **Gmail app-password**, not your normal password. [Learn how to generate one](https://support.google.com/accounts/answer/185833).
        </Step>

        <Step title="Test and save">
          *(Optional)* Add an address under **Test Email to**, click **Test Config**, then **Save**.
        </Step>
      </Steps>

      <Warning>Enable **2-factor authentication** on your Google account and use an **app-password**, not your main password.</Warning>
    </Tab>

    <Tab title="Office 365">
      <div style={{ display: 'flex', alignItems: 'center', gap: '12px', marginTop: 0, marginBottom: '16px' }}>
        <img src="https://mintcdn.com/nlpearl/-yv9LztxFIpwV2Dt/logo/outlook-365-logo.png?fit=max&auto=format&n=-yv9LztxFIpwV2Dt&q=85&s=8da0c064c6ec59da8d0cfb0ee5727329" alt="Office 365" width="36" height="36" style={{ width: '36px', height: '36px', flexShrink: 0, margin: 0, borderRadius: '8px', border: '1px solid rgba(128,128,128,0.25)', padding: '6px', objectFit: 'contain' }} data-path="logo/outlook-365-logo.png" />

        <span className="text-lg font-semibold text-gray-900 dark:text-white" style={{ margin: 0, lineHeight: 1.2 }}>Send from your Microsoft 365 address</span>
      </div>

      <Steps>
        <Step title="Select the provider">
          Choose **Office 365** from the provider list.
        </Step>

        <Step title="Enter your sender email">
          Enter your Microsoft address in **Sender Email**.
        </Step>

        <Step title="Add an app-password">
          Enter an **Office 365 app-password** (see your Microsoft security settings).
        </Step>

        <Step title="Test and save">
          *(Optional)* Add a **Test Email** address, click **Test Config**, then **Save**.
        </Step>
      </Steps>

      <Warning>Office 365 may block basic SMTP by default. Make sure your tenant allows it and use an app-password where required.</Warning>
    </Tab>

    <Tab title="Custom SMTP">
      <div style={{ display: 'flex', alignItems: 'center', gap: '12px', marginTop: 0, marginBottom: '16px' }}>
        <img src="https://mintcdn.com/nlpearl/yjNN1PpSs3yxoZOQ/logo/email_icon.png?fit=max&auto=format&n=yjNN1PpSs3yxoZOQ&q=85&s=8e55aa5c8a76bba48cd2be38dcc205ac" alt="Custom SMTP" width="36" height="36" style={{ width: '36px', height: '36px', flexShrink: 0, margin: 0, borderRadius: '8px', border: '1px solid rgba(128,128,128,0.25)', padding: '6px', objectFit: 'contain' }} data-path="logo/email_icon.png" />

        <span className="text-lg font-semibold text-gray-900 dark:text-white" style={{ margin: 0, lineHeight: 1.2 }}>Send through any SMTP server</span>
      </div>

      <Steps>
        <Step title="Select the provider">
          Choose **Custom** from the provider dropdown.
        </Step>

        <Step title="Enter your SMTP server">
          For example `smtp.gmail.com`, `smtp.office365.com`, or `mail.yourdomain.com`.
        </Step>

        <Step title="Set the port and SSL">
          Enter the **Port**, usually **587** for TLS or **465** for SSL, then toggle **Enable SSL** (usually **On**).
        </Step>

        <Step title="Enter your credentials">
          Enter your **Sender Email** and its **SMTP account password**.
        </Step>

        <Step title="Test and save">
          *(Optional)* Add a **Test Email** address under **Test Email to**, click **Test Config**, then **Save**.
        </Step>
      </Steps>

      <Info>If you're unsure about your SMTP details, check with your email hosting provider (Google Workspace, Outlook, Zoho, etc.).</Info>
    </Tab>
  </Tabs>
</Card>

## Variables

Personalize the **Subject** and **Content**, and set dynamic **To** and **CC** recipients using variables collected during the conversation.

<Card title="Using variables" icon="brackets-curly" href="/pages/variables" horizontal>
  Learn how to create and insert variables to tailor each email to the recipient.
</Card>
