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.
Requirement. This block is a part of Nexter Blocks. Make sure it is installed and activated.
Learn via Video Tutorial
For this, you need a MailerLite API Key and a Group ID.
Get MailerLite API Key
Create an account in MailerLite 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.

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

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.

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

Find MailerLite Group ID
If you do not have a group, create a group in MailerLite 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.

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

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.












