This package adds two new form finishers for the Neos Form Builder to subscribe and unsubscribe users to/from Mailjet mailing lists.
The package can be installed via Composer:
composer require ujamii/neos-mailjetsubscription
- Neos CMS 8.x+
- t3n/mailjet-adapter
Add your Mailjet API credentials to your NEOS Configuration/Settings.yaml
:
# Settings.yaml
t3n:
MailJetAdapter:
mailjet:
clientConfiguration:
apiKey: 'your-api-key'
apiSecret: 'your-api-secret'
This package provides:
- MailjetSubscribeFinisher: Adds a contact to one or more Mailjet mailing list
- MailjetUnsubscribeFinisher: Removes a contact from one or more Mailjet mailing list
- MailjetListSelector: A new form element which shows a set of lists to subscribe to/unsubscribe from.
After installing the package, the two new finishers will be available in the Form Builder in the Neos backend as well as a new form
type for the Mailjet ContactLists the user wants to sub/unsubscribe. Backend editors have to chose from all available lists which
ones should be shown in frontend. The form field always has the name lists
.
The Finisher expects 2 field ids to be in the form: email
and lists
.
The Finisher expects 2 field ids to be in the form: email
and lists
.
The package includes a DataSource for selecting Mailjet lists in the Neos backend. This allows editors to choose from available lists when configuring forms.
This package is licensed under the GPLv3 license.
Contributions are welcome! Please feel free to submit a Pull Request.