> ## Documentation Index
> Fetch the complete documentation index at: https://docs.softr.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Mailerlite

> Collecting form submissions with Mailerlite.

With MailerLite you can collect emails from your users through any email capture form. All the collected emails will be sent to and stored in your MailerLite account.

## **How to integrate MailerLite with Softr**

MailerLite integration 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](/6772b65a34c84bfdbe1bc16e8b03f525), you will see an "Add to Mailerlite" option under the submit button's **Action.**

<Frame caption="“Add to Mailerlite” action">
  <img src="https://mintcdn.com/softr-2b8a27e1/UK9rAhLsda5WuJiB/integrations/images/mailerlite/image1.png?fit=max&auto=format&n=UK9rAhLsda5WuJiB&q=85&s=eb27c77069810c336d6dbca5be2df76b" alt="“Add to Mailerlite” action" width="844" height="704" data-path="integrations/images/mailerlite/image1.png" />
</Frame>

As soon as you choose this option, a new field will appear, where you need to provide the MailerLite **Action URL** to link the email capture form to your MailerLite account.

<Frame caption="“Action URL” field">
  <img src="https://mintcdn.com/softr-2b8a27e1/UK9rAhLsda5WuJiB/integrations/images/mailerlite/image2.png?fit=max&auto=format&n=UK9rAhLsda5WuJiB&q=85&s=570e6a1594c294a392a6dea791f8e08c" alt="“Action URL” field" width="834" height="648" data-path="integrations/images/mailerlite/image2.png" />
</Frame>

So, let's see how you can get the **Action URL** from MailerLite.

## **How to locate MailerLite Action URL**

<Steps>
  <Step title="Create a Subscribers Group">
    Log into your MailerLite account, go to **Subscribers => Groups**,and create a group (or use an existing group if you already have one).

    <Frame caption="Creating a group">
      <img src="https://mintcdn.com/softr-2b8a27e1/UK9rAhLsda5WuJiB/integrations/images/mailerlite/image3.png?fit=max&auto=format&n=UK9rAhLsda5WuJiB&q=85&s=62bce0d8631fd448b5fc55f5f4ef20c9" alt="Creating a group" width="2994" height="1106" data-path="integrations/images/mailerlite/image3.png" />
    </Frame>
  </Step>

  <Step title="Create an embedded form">
    Then go to **Forms => Embedded Forms** and create an embedded form as shown below.

    <Frame caption="Creating an embedded form">
      <img src="https://mintcdn.com/softr-2b8a27e1/UK9rAhLsda5WuJiB/integrations/images/mailerlite/image4.png?fit=max&auto=format&n=UK9rAhLsda5WuJiB&q=85&s=aed5b81b553fbde6092e4c149ee1b85e" alt="Creating an embedded form" width="2740" height="1438" data-path="integrations/images/mailerlite/image4.png" />
    </Frame>
  </Step>

  <Step title="Select a Subscribers Group for the Form">
    After entering a name, you'll see the next 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 **Continue**.

    <Frame caption="Selecting a Subscribers Group">
      <img src="https://mintcdn.com/softr-2b8a27e1/UK9rAhLsda5WuJiB/integrations/images/mailerlite/image5.png?fit=max&auto=format&n=UK9rAhLsda5WuJiB&q=85&s=49c50e12d4fa964b858b3ae66f31fe12" alt="Selecting a Subscribers Group" width="2386" height="1144" data-path="integrations/images/mailerlite/image5.png" />
    </Frame>

    In the next screen, just hit **Done Editing** to finalize the form.

    <Frame caption="Finalizing the form">
      <img src="https://mintcdn.com/softr-2b8a27e1/UK9rAhLsda5WuJiB/integrations/images/mailerlite/image6.png?fit=max&auto=format&n=UK9rAhLsda5WuJiB&q=85&s=dc266e52ab220ab451fc243b8f5b590f" alt="Finalizing the form" width="2664" height="1284" data-path="integrations/images/mailerlite/image6.png" />
    </Frame>
  </Step>

  <Step title="Getting the Action URL of the Form">
    Finally, you'll be taken to your form's **Overview** page, where 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), and copy the URL (highlighted below).

    <Frame caption="Getting the Action URL">
      <img src="https://mintcdn.com/softr-2b8a27e1/UK9rAhLsda5WuJiB/integrations/images/mailerlite/image7.png?fit=max&auto=format&n=UK9rAhLsda5WuJiB&q=85&s=828f5eb81cec47422c6bac6f0d521ba9" alt="Getting the Action URL" width="1516" height="1386" data-path="integrations/images/mailerlite/image7.png" />
    </Frame>
  </Step>

  <Step title="Adding the URL on Softr">
    Lastly, you just need to add the URL in the **MailerLite** field of your Button.

    <Frame caption="Adding the Action URL">
      <img src="https://mintcdn.com/softr-2b8a27e1/UK9rAhLsda5WuJiB/integrations/images/mailerlite/image8.png?fit=max&auto=format&n=UK9rAhLsda5WuJiB&q=85&s=5cb531568020d2e9cf3aa0951a3b70ae" alt="Adding the Action URL" width="838" height="600" data-path="integrations/images/mailerlite/image8.png" />
    </Frame>

    That's it. You can now publish your form and start collecting subscriptions. See how that works below.

    <Frame caption="Testing the email capture">
      <img src="https://mintcdn.com/softr-2b8a27e1/UK9rAhLsda5WuJiB/integrations/images/mailerlite/image9.gif?s=fc40778cb7c7db55e4643d1e1fe930af" alt="Testing the email capture" width="2874" height="1412" data-path="integrations/images/mailerlite/image9.gif" />
    </Frame>

    <Tip>If you're testing the form submission and not getting anything on MailerLite, that could be due to **Double Opt-In** being enabled in your Form 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 on that [here](https://www.mailerlite.com/help/how-to-use-double-opt-in-when-collecting-subscribers).</Tip>
  </Step>
</Steps>

## 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 [Customizable Form](/building-blocks/vikC2AWEpQGkZd4jGyoVxo/advanced-form-features/jCim5VWZePgZuaRsUZBnpG)
on Softr with the following fields: **Name**, **Email**, and **Message**.

<Frame caption="A Customizable Form on Softr">
  <img src="https://mintcdn.com/softr-2b8a27e1/UK9rAhLsda5WuJiB/integrations/images/mailerlite/image10.png?fit=max&auto=format&n=UK9rAhLsda5WuJiB&q=85&s=3c26153e2dc96c2a758e5723f663ef9a" alt="A Customizable Form on Softr" width="1098" height="988" data-path="integrations/images/mailerlite/image10.png" />
</Frame>

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

<Frame caption="A custom form on Mailerlite">
  <img src="https://mintcdn.com/softr-2b8a27e1/UK9rAhLsda5WuJiB/integrations/images/mailerlite/image11.png?fit=max&auto=format&n=UK9rAhLsda5WuJiB&q=85&s=557ad2cf987f313b7412def52e1474b3" alt="A custom form on Mailerlite" width="2578" height="1260" data-path="integrations/images/mailerlite/image11.png" />
</Frame>

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\[name]** for the **Name** field as shown below).

<Frame caption="Getting field names">
  <img src="https://mintcdn.com/softr-2b8a27e1/UK9rAhLsda5WuJiB/integrations/images/mailerlite/image12.png?fit=max&auto=format&n=UK9rAhLsda5WuJiB&q=85&s=28fcee55ff2556867a1d7acd4acbe4fc" alt="Getting field names" width="1350" height="1342" data-path="integrations/images/mailerlite/image12.png" />
</Frame>

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

<Frame caption="Mapping the form fields">
  <img src="https://mintcdn.com/softr-2b8a27e1/UK9rAhLsda5WuJiB/integrations/images/mailerlite/image13.png?fit=max&auto=format&n=UK9rAhLsda5WuJiB&q=85&s=fe14f3a1bb91b9fa64b3b853abd79ba8" alt="Mapping the form fields" width="832" height="898" data-path="integrations/images/mailerlite/image13.png" />
</Frame>

As soon as you do the same for the rest of the fields and add the **Action URL** (discussed in the previous section on email capturing with Mailerlite), you're all set. Now, you can start receiving form submissions on MailerLite. Let's test the form to see how that works.

<Frame caption="Testing the form submission">
  <img src="https://mintcdn.com/softr-2b8a27e1/UK9rAhLsda5WuJiB/integrations/images/mailerlite/image14.gif?s=6c15b50e8846e6ce1378099e22dfa170" alt="Testing the form submission" width="2874" height="1412" data-path="integrations/images/mailerlite/image14.gif" />
</Frame>
