Subscribe users to a RapidMail mailing list
This plugin requires Craft CMS 3.0.0-beta.23 or later.
To install the plugin, follow these instructions.
-
Open your terminal and go to your Craft project:
cd /path/to/project
-
Then tell Composer to load the plugin:
composer require pausch/craft-rapidmail-subscribe
-
In the Control Panel, go to Settings → Plugins and click the “Install” button for rapidmail-subscribe.
Rapidmail Subscribe let's you subscribe members to Rapidmail recipient lists. Currently no other features of the Rapidmail API are supported.
This plugin comes with a settings page. You need to enter an API username and password which you can setup in the Rapidmail API settings.
In it's simplest form, you can subscribe a user with a simple form with just an email input field:
<form class="newsletter-form" action="" method="post">
{{ csrfInput() }}
<input type="hidden" name="action" value="rapidmail-subscribe/recipients/subscribe">
<div>
<label for="emailInput">
Email:
</label>
<input id="emailInput" type="text" name="email" />
</div>
<input type="submit" name="" value="Subscribe"/>
</form>
You can add all other fields supported by the Rapidmail API
Brought to you by Paul Schkade