Skip to main content
When a visitor submits a form or lead on a landing page, LanderLab can email you a notification through your own SMTP server. This guide connects a Gmail or Google Workspace account using an app password.
Estimated time: about 10 minutes. You complete this once per sending account, then connect it to each landing page.

Before you start

Google account ready

A Gmail or Google Workspace address to send notifications from.

2-Step Verification on

Required before you can create an app password.

LanderLab access

Edit access to the landing page project.

Recipient address

The inbox that should receive the lead notifications.
Use an app-specific password from your email provider, not your normal Gmail login password. Gmail blocks third-party SMTP sign-ins that use your normal password, so authentication will fail.

Part 1: Generate a Gmail app password

1

Enable 2-Step Verification

Open your Google Account, go to the Security tab, and turn on 2-Step Verification if it is not already active.
Google requires 2-Step Verification to be on before the app password option becomes available.
2

Open the app passwords page

3

Create the password

In the App name field, type a clear label so you can find it later, for example Landerlab. Click Create.
Create App Paswords
4

Copy the 16-character password

Google shows a 16-character password once. Copy it now and remove any spaces so it pastes as one unbroken string.
Google only displays this password a single time. If you lose it, delete the entry from the same page and create a new one.

Part 2: Add the email integration in LanderLab

1

Open the integration browser

Open the LP project, go to the Integrations area, then click Add integration. In the search box, type mail.
Add Email Accouint
2

Expand the Email option

Find the Email result labeled “Email lead notifications via your SMTP server” and expand it.
3

Fill the SMTP connection form

Enter these values for Gmail:
Image
FieldValue
NameEmail, or any label such as TLS Leads
SMTP Hostsmtp.gmail.com
Port587
UsernameYour full Gmail address, for example [email protected]
PasswordThe 16-character app password from Part 1
From EmailThe address the notification is sent from
From NameYour company or sender name
EncryptionSTARTTLS
Match the port to the encryption: port 587 pairs with STARTTLS, and port 465 pairs with SSL/TLS. Mixing them, such as 587 with SSL/TLS, fails the connection.
4

Save the connection

Click Add Email. The account now appears in your integrations list as connected, with the time it was added.
To use more than one sending account, click Add another account rather than overwriting the existing one.

Part 3: Connect the email to the page

Adding the SMTP account only stores the credentials. You still have to connect it to the landing page and choose who receives leads.
1

Start the connection

On the Email integration row, click Connect to page.
2

Set recipients

Fill the recipient fields:
Step2
FieldNotes
NameInternal label for this connection
To (required)Where leads are emailed. Press Enter or comma to add each address. Up to 25 addresses. Every lead goes to all recipients
CcOptional carbon copy addresses
BccOptional blind copy addresses
Reply-ToOptional. The address replies go to, for example [email protected]
Click Continue.
3

Set the email content

Choose what the notification looks like:
Image
FieldNotes
Subject (required)The email subject line, for example New lead from [LP name]
Body formatTable, List, or Custom HTML
Intro textA short line shown above the lead data
Click Continue.
4

(Optional) Build a custom HTML body

If you select Custom HTML, you can lay out the email yourself and insert LanderLab merge fields. Type / in the editor or use Insert field.
Image
Common fields:
  • {{LL Lander URL}} — landing page the lead came from
  • {{LL Visitor IP}} — visitor IP address
  • {{LL Visitor User Agent}} — visitor browser and device
  • {{LL Submission Time UTC}} — when the lead was submitted
  • {{LL Variant ID}} — which LP variant the lead came from
Custom HTML body
<h2>New lead</h2>
<p>LL Lander URL: {{LL Lander URL}}</p>
<p>LL Visitor IP: {{LL Visitor IP}}</p>
<p>LL Visitor User Agent: {{LL Visitor User Agent}}</p>
<p>LL Submission Time UTC: {{LL Submission Time UTC}}</p>
<p>LL Variant ID: {{LL Variant ID}}</p>
Click Continue to finish.

Part 4: Verify it works

1

Submit a test lead

Open the LP preview and submit a test lead through the form.
2

Confirm delivery

Check that the notification email arrives at the To address. If it does not arrive within a minute or two, check the spam folder.
3

Check the content

Confirm the subject line and body fields render as expected.
When a test lead lands in your inbox with the correct subject and fields, the integration is live.

Troubleshooting

The normal Gmail password was used. Replace it with the 16-character app password from Part 1.
2-Step Verification is not enabled on the Google account. Turn it on in the Security tab, then retry.
The port and encryption do not match. Use 587 with STARTTLS, or 465 with SSL/TLS.
Spaces were left in the pasted value. Remove all spaces so it is exactly 16 characters.
Standard Gmail caps at 2,000 messages per day. For higher volume, use the Google Workspace SMTP relay (smtp-relay.gmail.com).
The account was added but never connected to the page. Run Part 3. Adding the account and connecting it to the LP are two separate steps.

Quick reference

Gmail SMTP settings
SMTP Host:   smtp.gmail.com
Port:        587
Encryption:  STARTTLS
Username:    full Gmail address
Password:    16-character Gmail app password (no spaces)
App pwd URL: https://myaccount.google.com/apppasswords