Download the PHP package kinglozzer/silverstripe-mailgunner without Composer
On this page you can find all versions of the php package kinglozzer/silverstripe-mailgunner. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kinglozzer/silverstripe-mailgunner
More information about kinglozzer/silverstripe-mailgunner
Files in kinglozzer/silverstripe-mailgunner
Package silverstripe-mailgunner
Short Description Mailgun integration for SilverStripe emails
License BSD-3-Clause
Homepage https://github.com/kinglozzer/silverstripe-mailgunner
Informations about the package silverstripe-mailgunner
SilverStripe Mailgunner
A SilverStripe Mailer
class to send emails via the Mailgun API.
Installation:
Note that the Mailgun PHP library uses HTTPlug, so you can switch out the HTTP adapter for another one if you desire. More info is available here.
Configuration:
Set your API key and domain name via the Config
API:
Note: make sure that you always provide a “from” address, and/or have set the Email.admin_email
configuration value.
Batch messages:
You can send an email to a group of recipients via a single API call (without using Cc or Bcc) using Mailgun’s batch sending functionality. This tells Mailgun to send each recipient an email with only their name in the to
field. Not using this functionality would result in all recipients’ email addresses being displayed in the to
field.
To send a batch email, simply pass all the email addresses you want to send to as the to
field, and add an X-Mailgunner-Batch-Message
header:
SilverStripe version compatiblity:
This module has only been tested with SilverStripe 3.2+, but should work with previous versions. In older versions of SilverStripe, you will need to specify the Mailer
implementation to use in _config.php
: