Skip to content

AttilaSzobonya/ninjaforms-mailerlight-integration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

🚧 NinjaForms MailerLite Integration 🚧

GitHub GitHub GitHub stars

A custom NinjaForms action to integrate with MailerLite, allowing you to map form fields to MailerLite fields dynamically. 📋➡️📧


⚠️ WARNING: UNDER DEVELOPMENT ⚠️

This project is not ready for production use. It is still in the early stages of development, and there may be bugs, missing features, or breaking changes. Use at your own risk! 🛑

If you'd like to contribute, feel free to open an issue or submit a pull request. 🙌


📖 Overview

This snippet adds a custom action to NinjaForms that allows you to send form submissions to MailerLite. You can map any form field to any MailerLite field (e.g., email, name, custom fields) for maximum flexibility. 🎯

Key Features:

  • Dynamic Field Mapping: Map any form field to any MailerLite field. 🔄
  • Group Support: Optionally add subscribers to a specific MailerLite group. 🗂️
  • Resubscribe Option: Automatically resubscribe unsubscribed users. 🔄📧

🛠️ Installation

Using Code Snippets Plugin

  1. Install the Code Snippets Plugin:

    • If you don't already have it, install and activate the Code Snippets plugin from the WordPress repository.
  2. Add the Snippet:

    • Go to Snippets → Add New in your WordPress admin dashboard.
    • Give the snippet a title (e.g., "NinjaForms MailerLite Integration").
    • Copy and paste the code from this repository into the code area.
    • Set the Code Type to PHP.
    • Save and activate the snippet.
  3. Configure in NinjaForms:

    • Go to NinjaForms → Emails & Actions.
    • Add the "MailerLite Integration" action to your form.
    • Enter your MailerLite API key and configure field mappings.

🧰 Usage

1. MailerLite API Key

  • Obtain your API key from your MailerLite account.
  • Add it to the action settings in NinjaForms.

2. Field Mappings

  • Use the "Field Mappings" repeater to map your form fields to MailerLite fields.
  • Example:
    • Form Field: email → MailerLite Field: email
    • Form Field: first_name → MailerLite Field: name
    • Form Field: phone → MailerLite Field: custom_field

3. Group ID (Optional)

  • If you want to add subscribers to a specific group, enter the MailerLite Group ID.

🚀 Roadmap

  • Add support for custom fields in MailerLite.
  • Integrate into a standalone WordPress plugin.
  • Improve error handling and logging.
  • Add unit tests.
  • Create a settings page for global configuration.
  • Submit to the WordPress Plugin Repository.

🤝 Contributing

Contributions are welcome! If you'd like to contribute, please:

  1. Fork the repository.
  2. Create a new branch for your feature or bugfix.
  3. Submit a pull request.

Please ensure your code follows the WordPress Coding Standards.


📜 License

This project is licensed under the MIT License*. See the LICENSE file for details.


🔗 Links


🙏 Credits

  • Developed by Attila Szobonya.
  • Inspired by the need for a missing MailerLite integration with NinjaForms.

Happy Coding! 🎉

About

A script that can be used to integrate Ninja Forms with mailerlight

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages