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

# Set Up Gmail Integration

> Learn how to connect Gmail to your landing pages in LanderLab and send instant lead notification emails to your team, or to each lead directly, in real time.

Connect Gmail to your landing pages in LanderLab to get an email every time a new lead comes in. You sign in with your Google account once, choose who receives the email, and pick how the lead details are formatted. No SMTP settings and no app passwords required.

## What is the Gmail integration?

The Gmail integration sends a notification email from your own Gmail account whenever a lead is submitted on your landing page or quiz funnel. You can send it to your team, to a shared inbox, or to the lead's own email address using a dynamic field.

Because the email is sent from your connected Gmail account, replies go straight back to you.

Once you connect a Google account, it is saved **globally** in your LanderLab account. You can reuse the same account on other landing pages without signing in again.

<Note>
  Prefer to send through a different mail provider or your own mail server? Use the [Email (SMTP) integration](/integrations/email/gmail) instead.
</Note>

## Before you start

You need a Google account you can sign in to, and a landing page with a form or quiz that collects leads.

## Step 1: Connect your Google account

<Steps>
  <Step title="Open the integrations panel">
    Go to **Landing Pages** and click the **name of the landing page** where you want lead notifications. Click **Add Integration** to open the integrations panel.
  </Step>

  <Step title="Select Gmail">
    Search for **Gmail** in the integration list and click **+ Add**.
  </Step>

  <Step title="Sign in with Google">
    A Google sign-in window opens. Choose the Google account you want to send notification emails from. If you are signed into more than one account, make sure you pick the right one.
  </Step>

  <Step title="Grant permission">
    Google asks you to confirm that LanderLab can send email on your behalf. Check the box to allow access, then click **Continue**.

    <Tip>
      LanderLab only uses this permission to send your lead notification emails. It does not read your inbox.
    </Tip>
  </Step>
</Steps>

## Step 2: Choose who receives the email

After you authorize the account, the setup wizard opens.

<Frame>
  <img src="https://mintcdn.com/landerlab-babdc23f/cRWJpav2hUQzxan9/images/preview-(2).webp?fit=max&auto=format&n=cRWJpav2hUQzxan9&q=85&s=51d0533a6b678920eddb2074dc2035f7" alt="Preview (2)" width="720" height="522" data-path="images/preview-(2).webp" />
</Frame>

| Field    | Description                                                                                                                                    |
| -------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
| **Name** | A label to identify this integration. It is auto-filled with your Gmail address, and you can rename it to something like "Gmail - Sales Team". |
| **To**   | The email addresses that receive the notification. Type an address and press **Enter** to add it. You can add more than one.                   |
| **Cc**   | Optional. Addresses copied on the notification.                                                                                                |
| **Bcc**  | Optional. Addresses copied privately, hidden from the other recipients.                                                                        |

### Email the lead directly

To send the email to the person who submitted the form instead of your team, click the **\{ }** button next to the field and choose the form field that holds their email address, usually `email`.

You can mix both: add your team's address as a static recipient and the lead's field as a second one.

Click **Continue** when your recipients are set.

## Step 3: Set the subject and email format

| Field           | Description                                                                                                |
| --------------- | ---------------------------------------------------------------------------------------------------------- |
| **Subject**     | The subject line of the notification. It is pre-filled with the landing page name, and you can edit it.    |
| **Body format** | How the lead details are laid out in the email. Choose **List**, **Table**, or **Custom HTML**.            |
| **Intro text**  | Optional text shown above the lead details, for example "A new lead just came in from your Meta campaign." |

**List** prints each field on its own line. **Table** arranges the fields in a two column table. **Custom HTML** lets you build the email body yourself.

Click **Connect Gmail** to finish.

<Note>
  If your landing page has multiple A/B test variants, you are asked which variant or variants this integration applies to before it is added.
</Note>

## Test the integration

Submit a test lead through your form or quiz, then check the inbox you set as the recipient. The email should arrive within a few seconds with the lead details included.

## Use the same account on other landing pages

Your Google account is saved globally, so you do not need to sign in again. Open the integrations panel on any other landing page, expand **Gmail**, and click **Connect to page** next to your connected account to run the recipient and format setup for that page.

## Troubleshooting

<AccordionGroup>
  <Accordion title="No emails are arriving">
    Check the spam folder first. Then confirm the recipient address in the **To** field has no typos and that the integration is enabled on the landing page.
  </Accordion>

  <Accordion title="The lead did not receive the email">
    Make sure the **To** field uses the dynamic field that actually holds the email address. If the lead left that field empty, there is no address to send to.
  </Accordion>

  <Accordion title="Google asks me to sign in again">
    Access can expire if the password changed or if LanderLab was removed from your Google account permissions. Reconnect the account and the integration resumes. See [Fix Google Account Connection Issues](/community/integrations/fix-google-sheets-connection-issues).
  </Accordion>

  <Accordion title="I want emails sent from a different address">
    Each connected account sends from its own Gmail address. Connect the other Google account and use it for this page instead.
  </Accordion>
</AccordionGroup>
