Available on: Gold and Platinum plans
MailerLite is a simple email marketing solution for all types of businesses. The key idea behind our solution is simplicity. Providing customers with a simple and user-friendly content editor, simplified subscriber management, and campaign reports with the most important statistics.
When you connect your form to a MailerLite account, each submission will add a new subscriber to your account, along with the name, phone number, address, and much more data if needed. Multiple submissions with the same email will be ignored, only the first will be added.
Adding an input named "email", or alternatively "_replyto", will set the primary email of the new subscriber in your MailerLite list. This is the only required property. If the same address gets submitted twice it will not be duplicated in the list.
<input name="email" />
Adding an input named "_name", or alternatively just "name", will set the name of the subscriber that will be added. This is an optional field.
<input name="_name" />
This is an optional field and only works if you have enabled the "Optin checkbox" in the MailerLite plugin settings.
Adding a checkbox named "_optin" will trigger the MailerLite plugin to add a contact. If the checkbox is left unchecked, the contact won't be sent to MailerLite.
<input type="checkbox" name="_optin"/>
MailerLite allows you to create custom fields. For example, some fields are already defined as default in MailerLite accounts. You can see those fields on the subscriber fields tab.
To use those fields with formspree you just need to add new inputs with the related names defined on MailerLite fields list.
For example, if you want to add the company data to your new subscribers you just need to add the input below to your form.
<input type="text" name="company"/>
You can add how many fields that you want, just be sure to also create the input on your form with the correct name.
Connecting to MailerLite
Once you've created and configured a form, you can connect to MailerLite using the MailerLite Plugin. To do so, first, go to the Plugins tab of your form. Then click the MailerLite Plugin button.
It will trigger a popup that will ask you to inform your API Key to connect to MailerLite account.
You can get your API Key here.
Once you've signed, you'll be prompted to select the MailerLite group, subscriber status, and set some options.
Once you've connected you'll see MailerLite settings modal:
In the future, if you'd like to change the list or disable the plugin entirely, you can do so by clicking on the MailerLite button again to adjust its settings.
Extra MailerLite options
If you want to have more control over MailerLite settings you should use the Formspree CLI to add the MailerLite action.
Enable Autoresponders and Resubscribe are available on the CLI.