# MailerLite (Older Version)

### Configuration

MailerLite action can be applied to any block with email capture (CTA, Hero section, Form etc). For instance, if you are configuring a **CTA with email capture**, you will see the following options under the button **Action**:

![](https://3426011356-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M0NiyhsmXAcV5u1c6XK%2F-MPkBMXTj5j68LcRxeuQ%2F-MPkEBKLzfj-vWlxe1q3%2F1_b.png?alt=media\&token=b5ed6fc0-d1f0-4145-8ef7-56119d7047de)

You need to choose the  **Add to MailerLite** option to collect emails via MailerLite. Afterwards, a new field will appear, where you need to provide the MailerLite **Action URL** to link the form to your MailerLite account.

![](https://3426011356-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M0NiyhsmXAcV5u1c6XK%2F-MPkBMXTj5j68LcRxeuQ%2F-MPkEEFIyNkg-A_m7qbZ%2F2_b.png?alt=media\&token=665f2f90-dee2-47c4-abbc-a766982930cd)

Let's see where you can locate the **Action URL** in your MailerLite account.

### How to locate MailerLite Action URL

Follow the steps below to locate the Action URL.

**1.** Log into your MailerLite account, go to **Subscribers => Groups**, and create a group (if you haven’t already).

**2.** Then go to **Forms => Embedded Forms** and create an embedded form as shown below:

![](https://3426011356-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M0NiyhsmXAcV5u1c6XK%2F-MPkBMXTj5j68LcRxeuQ%2F-MPkEHNxyXmKiAF5O0Kl%2F3_b.png?alt=media\&token=f1c6cf0f-c2e9-4f03-9ad5-939319ab8455)

**3.** After entering a name, you'll see the following step, where you need to select the Subscribers group for the form. Choose the group where you want the contacts to be stored and hit **Save and continue**.

![](https://3426011356-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M0NiyhsmXAcV5u1c6XK%2F-MPkBMXTj5j68LcRxeuQ%2F-MPkEL-6ALWwf5apEl7s%2F4_b.png?alt=media\&token=8c70b187-657f-48d2-a12f-b7253dedfe3c)

**4.** Hit **Next** in the following screen.

![](https://3426011356-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M0NiyhsmXAcV5u1c6XK%2F-MPkBMXTj5j68LcRxeuQ%2F-MPkENmWFqRVnu9P1lsj%2F5_b.png?alt=media\&token=cafaed74-3696-44a6-b11e-b8207b2aaeff)

**5.** And here you have your form configuration page. You should scroll down to the **Embed form into your website** section and switch to the **HTML code** tab. Here you need to locate the action URL of the form (can also search for "action" using browser search with Ctrl+F), copy the URL (highlighted below), and paste it into the **Action URL** field of your form.

![](https://3426011356-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M0NiyhsmXAcV5u1c6XK%2F-MPkBMXTj5j68LcRxeuQ%2F-MPkER2AWbs9iHn-_KKT%2F6_b.png?alt=media\&token=cc47e948-0d05-4e89-b6cf-01a5c70adb70)

![](https://3426011356-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M0NiyhsmXAcV5u1c6XK%2F-MPkBMXTj5j68LcRxeuQ%2F-MPkEVblBA632RQy4J08%2F7_b.png?alt=media\&token=37e90c7f-105c-457d-b43c-a0c16bcda5b5)

That's it. You can now publish your form and start collecting subscriptions.

{% hint style="warning" %}
If you're testing the from submission and not getting anything on Mailerlite, that could be due to **Double Opt-In** being enabled in your Mailerlite settings. When it's enabled, the user that submits the form receives a confirmation email. Only after the submission is confirmed by the user, it is sent to Mailerlite. You can find more details [here](https://www.mailerlite.com/help/how-to-use-double-opt-in-when-collecting-subscribers).
{% endhint %}

## Sending Forms to Mailerlite

In the previous section we discussed how to capture emails with Mailerlite, however you might also need to map a whole form with multiple field. Let's say you have a contact form on Softr with the following fields: **Name**, **Email**, and **Message**.

![](https://3426011356-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M0NiyhsmXAcV5u1c6XK%2F-MPkBMXTj5j68LcRxeuQ%2F-MPkE_FQ6gofaeo79ETp%2F8_b.png?alt=media\&token=c62cbd89-182e-4ba9-b1b8-acf8dffa470d)

In order to receive the form submissions on Mailerlite, you should build a similar form there as shown below.

![](https://3426011356-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M0NiyhsmXAcV5u1c6XK%2F-MPkBMXTj5j68LcRxeuQ%2F-MPkEctt1yYy_vYUfoqr%2F9_b.png?alt=media\&token=f921e0e0-22ca-4ee5-ab4b-f33748ef6525)

Next, in the form configuration page, you need to go to the **HTML code** tab of the **Embed form into your website** section and, apart from grabbing the **Action URL** of the form, you should get the names of corresponding fields (e.g. **fields\[message]** for the **Message** field as shown below).

![](https://3426011356-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M0NiyhsmXAcV5u1c6XK%2F-MPkBMXTj5j68LcRxeuQ%2F-MPkEj-lsVlVXedo5sNj%2F10_b.png?alt=media\&token=53d3e487-d8f9-4fd9-9c60-993ab345a637)

These names need to be pasted inside the **Tag** parameter of each of the form fields.

![](https://3426011356-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M0NiyhsmXAcV5u1c6XK%2F-MPkBMXTj5j68LcRxeuQ%2F-MPkEluaYwsvpCk2z7Y6%2F11_b.png?alt=media\&token=d6e1de01-597a-46ba-b958-c38664371341)

In this examples, you need to do the same for **Name** and **Email** fields and you are done. Now when the users submit the form, all the fields be added as subscriber details on Mailerlite, as shown in the example below.

![](https://3426011356-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M0NiyhsmXAcV5u1c6XK%2F-MPkBMXTj5j68LcRxeuQ%2F-MPkEqDrp4uD6QghkF2s%2F12_b.png?alt=media\&token=fc41efd1-f0cd-4d4c-b50b-b6ecdb422be3)

![](https://3426011356-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M0NiyhsmXAcV5u1c6XK%2F-MPkBMXTj5j68LcRxeuQ%2F-MPkEu-eIc0xwBYnb2f4%2F13_b.png?alt=media\&token=8b5d0551-cd53-4c49-b730-e9bd4bdee64a)
