2017 © Pedro PelĂĄez
 

silverstripe-module silverstripe-mailgunner

Mailgun integration for SilverStripe emails

image

kinglozzer/silverstripe-mailgunner

Mailgun integration for SilverStripe emails

  • Friday, May 18, 2018
  • by kinglozzer
  • Repository
  • 1 Watchers
  • 7 Stars
  • 9,433 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 5 Forks
  • 1 Open issues
  • 12 Versions
  • 7 % Grown

The README.md

SilverStripe Mailgunner

Build Status Code Quality Code Coverage Version License, (*1)

A SilverStripe Mailer class to send emails via the Mailgun API., (*2)

Installation:

$ composer require kinglozzer/silverstripe-mailgunner:^3.0 php-http/curl-client guzzlehttp/psr7

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., (*3)

Configuration:

Set your API key and domain name via the Config API:, (*4)

---
After: 'silverstripe-mailgun'
---
Kinglozzer\SilverStripeMailgunner\Mailer:
  api_domain: 'samples.mailgun.org'
  api_key: 'key-3ax6xnjp29jd6fds4gc373sgvjxteol0'
---
After: 'silverstripe-mailgun'
Only:
  environment: 'dev'
---
# Get your own Postbin ID by visiting http://bin.mailgun.net
Kinglozzer\SilverStripeMailgunner\Mailer:
  api_endpoint: 'http://bin.mailgun.net/62e69d41'
  debug: true

Note: make sure that you always provide a “from” address, and/or have set the Email.admin_email configuration value., (*5)

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., (*6)

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:, (*7)

$email = Email::create(
    $from = 'noreply@example.com',
    $to = 'user1@example.com, user2@example.com',
    $subject = 'My awesome email',
    $content = 'Hello world!'
);

$email->addCustomHeader('X-Mailgunner-Batch-Message', true);
$email->send();

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:, (*8)

<?php

Email::set_mailer(new Kinglozzer\SilverStripeMailgunner\Mailer);

The Versions

18/05 2018

dev-master

9999999-dev https://github.com/kinglozzer/silverstripe-mailgunner

Mailgun integration for SilverStripe emails

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

email mailer silverstripe mailgun mailgunner

18/05 2018

3.x-dev

3.9999999.9999999.9999999-dev https://github.com/kinglozzer/silverstripe-mailgunner

Mailgun integration for SilverStripe emails

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

email mailer silverstripe mailgun mailgunner

18/05 2018

3.1.1

3.1.1.0 https://github.com/kinglozzer/silverstripe-mailgunner

Mailgun integration for SilverStripe emails

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

email mailer silverstripe mailgun mailgunner

25/09 2017

3.1.0

3.1.0.0 https://github.com/kinglozzer/silverstripe-mailgunner

Mailgun integration for SilverStripe emails

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

email mailer silverstripe mailgun mailgunner

31/05 2017

3.0.0

3.0.0.0 https://github.com/kinglozzer/silverstripe-mailgunner

Mailgun integration for SilverStripe emails

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

email mailer silverstripe mailgun mailgunner

24/11 2016

2.0.1

2.0.1.0 https://github.com/kinglozzer/silverstripe-mailgunner

Mailgun integration for SilverStripe emails

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

email mailer silverstripe mailgun mailgunner

24/11 2016

2.x-dev

2.9999999.9999999.9999999-dev https://github.com/kinglozzer/silverstripe-mailgunner

Mailgun integration for SilverStripe emails

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

email mailer silverstripe mailgun mailgunner

12/08 2016

2.0.0

2.0.0.0 https://github.com/kinglozzer/silverstripe-mailgunner

Mailgun integration for SilverStripe emails

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

email mailer silverstripe mailgun mailgunner

01/03 2016

1.1.0

1.1.0.0 https://github.com/kinglozzer/silverstripe-mailgunner

Mailgun integration for SilverStripe emails

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

email mailer silverstripe mailgun mailgunner

01/03 2016

1.x-dev

1.9999999.9999999.9999999-dev https://github.com/kinglozzer/silverstripe-mailgunner

Mailgun integration for SilverStripe emails

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

email mailer silverstripe mailgun mailgunner

27/02 2016

1.0.x-dev

1.0.9999999.9999999-dev https://github.com/kinglozzer/silverstripe-mailgunner

Mailgun integration for SilverStripe emails

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

email mailer silverstripe mailgun mailgunner

27/02 2016

1.0.0

1.0.0.0 https://github.com/kinglozzer/silverstripe-mailgunner

Mailgun integration for SilverStripe emails

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

email mailer silverstripe mailgun mailgunner