### [MailerLite Addon](https://wpforms.com/docs/install-use-mailerlite-addon-wpforms/)

**Published:** November 28, 2023
**Author:** David Ozokoye

**Excerpt:** Learn how to use the MailerLite addon to send new subscribers to your email marketing lists.

**Content:**

MailerLite Addon is a Plus Feature

 Unlock MailerLite Addon and other powerful features to grow your business.

 [ Get WPForms Plus ](https://wpforms.com/pricing/) 

Would you like to know how to use MailerLite with WPForms? With the MailerLite addon, you can easily send leads from your forms to the MailerLite dashboard.

This tutorial will show you how to install and use the MailerLite addon for WPForms.

- [1. Installing the MailerLite Addon](#installing)
- [2. Setting Up MailerLite Integration](#setting-up)
- [3. Using MailerLite With Your Forms](#using)
- [4. Enabling Double Opt-In Confirmation Email (Optional)](#double-optin)

**Requirements:**

- You need a [Plus or higher license](https://wpforms.com/pricing/) to use MailerLite integration
- Ensure that you’ve installed the latest version of WPForms to meet the [minimum required version](https://wpforms.com/docs/why-you-should-always-use-the-latest-version-of-wpforms/#version-requirements) for the MailerLite addon

---

## 1. Installing the MailerLite Addon

First, ensure you’ve [installed and activated WPForms](https://wpforms.com/docs/install-wpforms-plugin/ "How to Install the WPForms Plugin") on your WordPress site. Once you’ve [verified your license](https://wpforms.com/docs/verify-wpforms-license/ "How to Verify Your WPForms License"), you can [install and activate the MailerLite addon](https://wpforms.com/docs/install-activate-wpforms-addons/ "How to Install and Activate WPForms Addons").

## 2. Setting Up MailerLite Integration

Once you’ve got MailerLite installed and activated, it’s time to connect your site. To do this, you will need an API key.

### Obtaining an API Key

If you have an existing API key, you can [skip this section](#managing-connections). Otherwise, [open the MailerLite dashboard](https://dashboard.mailerlite.com/) and click on **Integrations** to obtain your key.

![Integrations in MailerLite dashboard](https://wpforms.com/wp-content/uploads/2022/05/mailerlite-dashboard-integrations-1.png)Under **API** in the **MailerLite API** section, click **Use** to open the token generation screen.

![MailerLite dashboard use API](https://wpforms.com/wp-content/uploads/2022/05/mailer-lite-dashboard-use-api-1.png)Next, click on **Generate new token** to bring up the **Create new API token** dialog.

![Generate new token](https://wpforms.com/wp-content/uploads/2022/05/mailer-lite-dashboard-generate-new-token-1.png)In the Create new API token dialog, enter a name for your token and choose an option for IP restrictions based on your security needs.

After making your selection, click on **Create token** to generate a new API token.

![Create token - MailerLite](https://wpforms.com/wp-content/uploads/2024/09/mailer-lite-dashboard-create-token-2-1024x817.png)MailerLite will generate an API key for you, which you can copy to your clipboard by clicking the **Copy** button.

![MailerLite dashboard API token](https://wpforms.com/wp-content/uploads/2022/05/mailerlite-dashboard-copy-api-token-1.png)You can also click on the **Download** button to download and save the API key.

![MailerLite download API token](https://wpforms.com/wp-content/uploads/2022/05/mailerlite-dashboard-download-api-token-1.png)Once you’ve copied your API key, you can close the dialog. We highly recommend downloading and saving a copy of the API key.

![Close the API dialog](https://wpforms.com/wp-content/uploads/2022/05/mailerlite-dashboard-close-token-popup-1.png)**Note:** You won’t be able to reaccess the token once you’ve closed this popup. We recommend saving a copy somewhere secure.

If you lose your API token and need to connect again, you’ll need to generate a new token. You can have multiple tokens for the same account.

### Managing Connections in WPForms

Now that you’ve obtained your API key, you can continue to set up MailerLite integration on your WordPress site.

To do this, go to **WPForms » Settings** and click on the **Integrations** tab.

![WPForms integrations](https://wpforms.com/wp-content/uploads/2017/05/wpforms-integrations.png)Click on **MailerLite** to reveal the account details for this integration.

Next, click **Add New Account**, and add your account details, including the MailerLite API Key and MailerLite Account Nickname.

![Add new MailerLite account](https://wpforms.com/wp-content/uploads/2022/05/mailerlite-add-new-account.png)You can use anything you like for your Account Nickname, but the API key must match what you have in your MailerLite account. If you don’t provide an Account Nickname, WPForms will use your MailerLite account name.

To ensure this, paste the API key you copied earlier, where it says **MailerLite API Key**. Now, give your connection a name and click **Connect to MailerLite**.

![Click Connect to MailerLite](https://wpforms.com/wp-content/uploads/2022/05/mailerlite-connect-in-wpforms.png-.png)### Adding Additional Connections

If you would like to add additional connections, click on **Add New Account** and add a new MailerLite API key and nickname.

![Adding additional connections](https://wpforms.com/wp-content/uploads/2022/05/mailerlite-add-more-connections-2.png)This will allow you to have as many connections for MailerLite as you need, so long as each has a unique API key and nickname.

**Note:** Although you can generate multiple API keys for the same MailerLite account, WPForms counts each as a unique connection.

If you need to remove a connection, click **Disconnect**.

![Remove MailerLite account connection](https://wpforms.com/wp-content/uploads/2022/05/mailerlite-remove-account-connection-1.png)## 3. Using MailerLite With Your Forms

Now that you’ve connected MailerLite to your site, you can easily use it with any of your forms. For example, [we will create a new form](https://wpforms.com/docs/creating-first-form/) and add MailerLite integration using one of the connections we made earlier.

**Note:** Sending data to MailerLite occurs in the background after the form is submitted, so actions may not appear immediately in your MailerLite dashboard.

### Adding MailerLite Integration to a Form

To get started, go to **WPForms » Add New**.

![add new form](https://wpforms.com/wp-content/uploads/2021/11/add-new-form.png)For this example, we’ll use the Simple Contact Form template.

If you’re looking for a quick start, you can use our pre-built [MailerLite Email Signup Form Template](https://wpforms.com/templates/mailerlite-email-signup-form-template/). This template is designed specifically for collecting email addresses for MailerLite email marketing campaigns and can be easily customized to fit your needs.

![Selecting the Simple Contact Form template](https://wpforms.com/wp-content/uploads/2021/09/Simple-contact-form-template.png)Next, click on the **Marketing** tab and choose **MailerLite** from the list.

![MailerLite in marketing tab](https://wpforms.com/wp-content/uploads/2022/05/mailerlite-in-marketing-tab.png)To choose a connection, click **Add New Connection** on the upper right of the interface.

![Add a new MailerLite connection to your form](https://wpforms.com/wp-content/uploads/2022/05/mailerlite-add-new-connection-form-builder.png)This will open a dialog allowing you to name your new connection. You can choose any name you like. Once you’ve selected a name, click **OK** to move on to the next step.

![Confirm connection name](https://wpforms.com/wp-content/uploads/2022/05/mailerlite-save-connection.png)Now you’ll be able to choose any of the API connections you created earlier.

![Select MailerLite API connection](https://wpforms.com/wp-content/uploads/2022/05/mailerlite-select-connection.png)**Note:** You can have as many connections as you need. Just set up each connection separately. Additional connections can use any of the accounts you’ve added under **WPForms » Settings » Integrations**.

### Choosing an Action to Perform

Under Action To Perform, you can select from three options:

- [Subscribe](#subscribe)
- [Unsubscribe](#unsubscribe)
- [Delete](#delete)

![Choosing an action perform](https://wpforms.com/wp-content/uploads/2022/05/mailerlite-choosing-action.png)Different configurations are available under each of these options. We’ve described the three options in more detail below.

#### Subscribe

This action will add a new subscriber upon form submission. When selected, it’ll allow you to choose a Type and any Groups you’ve created in MailerLite.

##### Type

![Selecting a type](https://wpforms.com/wp-content/uploads/2022/05/mailerlite-type.png)There are three subscription types you can choose from:

- Active
- Unsubscribed
- Unconfirmed

These correspond with the subscription types found in MailerLite. When users submit a form with the Subscribe action selected, their subscription details will be updated in your MailerLite subscriptions. For example, if you choose Active, the user will be marked as Active in MailerLite.

##### Groups

![Selecting groups in MailerLite](https://wpforms.com/wp-content/uploads/2022/05/mailerlite-groups-2.png)By using this setting, you can add or remove subscribers to or from [any of the groups](https://www.mailerlite.com/help/how-to-create-and-use-groups) you have available in MailerLite.

##### Mapping WPForms Fields to MailerLite Custom Fields

When the Subscribe action is selected, you can map any of your form’s Field Values to [MailerLite custom fields](https://www.mailerlite.com/help/how-to-create-and-use-custom-fields).

![Map MailerLite and WPForms fields](https://wpforms.com/wp-content/uploads/2022/05/mailerlite-fields.png)#### Unsubscribe

This action will remove a contact from your MailerLite subscriber groups without deleting their information altogether. If you want to remove a subscriber, you should [choose the Delete action](#delete).

![Unsubscribe with groups selected](https://wpforms.com/wp-content/uploads/2022/05/mailerlite-unsubscribe-with-groups-visible.png)#### Delete

This action completely removes a contact from your subscriber list. No other options are required when this action is selected.

![Delete action selected](https://wpforms.com/wp-content/uploads/2022/05/mailerlite-delete.png)### Choosing an Email Field

Regardless of which of the above actions you choose, you will need to set an Email field. The MailerLite addon will only pull emails from fields of the type Email.

![Choose an email field](https://wpforms.com/wp-content/uploads/2022/05/mailerlite-choose-email-field.png)### Choosing Groups

When the Subscribe and Unsubscribe actions are selected, you can choose from any groups that already exist in your MailerLite subscriptions.

![Some groups selected](https://wpforms.com/wp-content/uploads/2022/05/mailerlite-groups-alt.png)### Enabling Conditional Logic (Optional)

You can enable conditional logic when setting up MailerLite connections. Just click on **Enable Conditional Logic** to activate it.

![Enable conditional logic](https://wpforms.com/wp-content/uploads/2022/05/mailerlite-enable-conditional-logic.png)You can then set any rules that you’d like according to the WPForms conditional logic system.

![Editing conditional logic in MailerLite](https://wpforms.com/wp-content/uploads/2022/05/mailerlite-conditional-logic-enabled.png)**Note:** If you are unfamiliar with conditional logic in WPForms, we highly recommend that you [check out our guide to learn more](https://wpforms.com/docs/how-to-use-conditional-logic-with-wpforms/).

## 4. Enabling Double Opt-In Confirmation Email (Optional)

Double opt-in confirmation email is a good practice as it contributes towards legal compliance in European countries ([GDPR](https://wpforms.com/docs/how-to-create-gdpr-compliant-forms/)). Mailerlite includes this option, and you can easily integrate it with WPForms.

To use this option, you’ll first need to enable it on your MailerLite account. To do so, log in to your MailerLite account and click on **Account settings**.

![MailerLite account settings](https://wpforms.com/wp-content/uploads/2024/12/account-settings.png)After that, select the **Subscribe settings** option.

![Subscribe settings](https://wpforms.com/wp-content/uploads/2024/12/subscribe-settings.png)Once here, toggle on the **Double opt-in for API and integrations** option. Then, proceed to configure the confirmation email subject and sender details.

![Enable double opt-in for API and integrations](https://wpforms.com/wp-content/uploads/2024/12/enable-double-optin.png)After enabling the double opt-in option, you’ll need to modify the MailerLite addon settings. To do so, open the [form integrated with the MailerLite addon](#adding-integration), then set the **Type** field dropdown value to **Unconfirmed**. Setting it to Unconfirmed is a required step for the double opt-in confirmation to work properly.

![Select Unconfirmed as the Type](https://wpforms.com/wp-content/uploads/2024/12/type-unconfirmed.png)That’s it! You now know how to install and use the MailerLite addon for WPForms!

Next, would you like to know how to set up conditional logic to send email notifications for your forms? Learn more by [checking out our complete tutorial](https://wpforms.com/docs/how-to-create-conditional-form-notifications-in-wpforms/).

**Categories:** Marketing Integrations, Addons

---

