---
title: "How to Connect MailerLite to a WordPress Form?"
url: https://qa.nexterwp.com/docs/connect-mailerlite-to-a-wordpress-form/
date: 2025-04-17
modified: 2026-06-06
author: "Aditya Sharma"
description: "Want to automate your email marketing with MailerLite? Connecting your WordPress form to MailerLite lets you collect new subscribers directly from your site and add them to a MailerLite group..."
image: https://qa.nexterwp.com/wp-content/uploads/2025/04/connect-mailerlite-to-a-wordpress-form-1024x519.jpg
word_count: 425
---

# How to Connect MailerLite to a WordPress Form?

## Key Takeaways

- Connects MailerLite to WordPress forms using the Nexter Blocks Form block.
- Requires MailerLite API Key and Group ID for integration.
- Automatically adds users to MailerLite Group upon form submission.

Want to automate your email marketing with MailerLite? Connecting your WordPress form to MailerLite lets you collect new subscribers directly from your site and add them to a MailerLite group automatically.

With the Form block from Nexter Blocks, you can connect your MailerLite account to any WordPress form you build in the block editor and route form submissions directly into your subscriber list.

*To check the complete feature overview documentation of the Nexter Blocks Form block, [click here](https://qa.nexterwp.com/docs/add-a-form-in-wordpress/).*

**Requirement. This block is a part of Nexter Blocks. Make sure it is installed and activated.**

[LIVE BLOCK LINK](https://qa.nexterwp.com/nexter-blocks/blocks/)

## Learn via Video Tutorial

https://www.youtube.com/watch?v=CSfV0UgqKAU

For this, you need a MailerLite API Key and a Group ID.

### Get MailerLite API Key

[Create an account in MailerLite](https://www.mailerlite.com/) if you do not already have one. Once you are logged in, follow the steps below.

1. Click on **Integrations** from the left sidebar.

2. On the next page, go to **API** under MailerLite API and click on **Use**.

![](https://qa.nexterwp.com/wp-content/uploads/2025/04/mailerlite-api-1-1.png)

3. On the next page, click on the **Generate new token** button.

![](https://qa.nexterwp.com/wp-content/uploads/2025/04/mailerlite-api-2.png)

4. In the pop-up, add a name for the API key in the **Enter token name** field.

5. Keep **All IPs allowed** selected, accept the terms of use checkbox, and click **Create token**.

![](https://qa.nexterwp.com/wp-content/uploads/2025/04/mailerlite-api-3.png)

Once the token is generated, copy the API key and store it somewhere safe. You will need it in the next step.

![](https://qa.nexterwp.com/wp-content/uploads/2025/04/mailerlite-api-4.png)

### Find MailerLite Group ID

If you do not have a group, [create a group in MailerLite](https://www.mailerlite.com/help/how-to-create-and-use-groups) first. Then follow the steps below.

1. Click on **Integrations** from the left sidebar.

2. On the next page, go to **API** under MailerLite API and click on **Use**.

![](https://qa.nexterwp.com/wp-content/uploads/2025/04/mailerlite-api-1-5.png)

3. At the bottom of the API page, you will find the Group ID. Copy it and keep it ready for the next step.

![](https://qa.nexterwp.com/wp-content/uploads/2025/04/mailerlite-group-id-2-1.png)

### Use the Form Block

Add the Form block to the page and select the form type you want to use, then follow the steps below.

1. Add the required form fields and configure them as needed.

2. Select the main form block, go to the **Action After Submit** tab, and select **MailerLite** from the **Options** dropdown. This tells the form where to send subscriber data after someone submits it.

3. The **MailerLite** tab will appear. Open it.

4. Enter your API key in the **Custom API Key** field and your Group ID in the **Group ID** field.

When a visitor submits your form, they will be automatically added to the MailerLite group you configured. You can verify this in your MailerLite dashboard under the group you connected.