2017 © Pedro Peláez
 

craft-plugin mailjet-subscribe

Simple Craft plugin for subscribing to a Mailjet list.

image

publiq/mailjet-subscribe

Simple Craft plugin for subscribing to a Mailjet list.

  • Monday, January 8, 2018
  • by stijnswaanen
  • Repository
  • 11 Watchers
  • 0 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Mailjet Subscribe for Craft CMS 3.x

Simple Craft plugin for subscribing to a Mailjet list., (*1)

Requirements

This plugin requires Craft CMS 3.0.0 or later., (*2)

Settings

In the plugin settings you have to set - Public API key - Private API key - List ID you want to use (currently you have to use the same list in all forms), (*3)

Usage

The plugin consists of a controller function that needs an email address, which it then passes on to the mailjet service to handle subscribing. Post your subscription form to mailjet-subscribe/list/subscribe like the example below:, (*4)

<form class="form" method="POST">
    {{ csrfInput() }}
    <input type="hidden" name="action" value="mailjet-subscribe/list/subscribe">
    <input type="email" id="email" name="email" required value="{% if (mailjetSubscribe is defined) and (not mailjetSubscribe.success) %}{{ mailjetSubscribe.values.email }}{% endif %}">
    <input type="submit" value="Subscribe">
</form>

The Versions

08/01 2018

dev-master

9999999-dev

Simple Craft plugin for subscribing to a Mailjet list.

  Sources   Download

The Requires

 

cms mailjet craftcms craft-plugin craft