Send lead notification emails from your landing pages using Gmail SMTP and an app password. Includes recipient setup, merge fields, and troubleshooting.
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.
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.
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.
Send the email to the lead instead of a fixed address
Next to To, Cc, and Bcc you will see a { } button. This lets you pick a form field instead of typing a fixed address, so each notification goes to the address that visitor submitted.
1
Click the { } button
Click { } next to the field you want to fill.
2
Search for the field
Start typing the field name, for example em, and select Email from the list.
3
Save the recipient
The field is added as a recipient. Every lead now receives the notification at the email address they entered on the form.
You can mix both. Put your own inbox in To so your team gets a copy, and add the Email field in Cc so the lead is notified as well.
The { } picker only lists fields that exist on the form. If you do not see Email, add an email field to the form first, then reopen this step.
Click Continue.
3
Set the email content
Choose what the notification looks like:
Field
Notes
Subject (required)
The email subject line, for example New lead from [LP name]
Body format
Table, List, or Custom HTML
Intro text
A 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.
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>