2017 © Pedro Peláez
 

silverstripe-module silverstripe-mailer-mailgun

SilverStripe Mailer for sending mail via the Mailgun API

image

micschk/silverstripe-mailer-mailgun

SilverStripe Mailer for sending mail via the Mailgun API

  • Thursday, August 3, 2017
  • by micschk
  • Repository
  • 2 Watchers
  • 0 Stars
  • 770 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 6 Forks
  • 0 Open issues
  • 6 Versions
  • 10 % Grown

The README.md

SilverStripe Mailer for sending mail via the Mailgun API

This module lets you send SilverStripe emails through the official Mailgun PHP library, falling back to PHP's built-in sendmail() if Mailgun is unreachable., (*1)

Requirements

  • PHP 5.4+
  • SilverStripe ~3.1
  • Mailgun-PHP
  • (optional) set up a manual cron task, or use silverstripe-crontask or silverstripe-queuedjobs(?) to keep log synced

Installation

Install with Composer. Learn how, (*2)

composer require "micschk/silverstripe-mailer-mailgun:~1.0"

Documentation

You will need to provide a Mailgun API key for a verified domain that you have set up in your Mailgun account., (*3)

Also, if you want to synchronize the Mailgun log, you will need to set up some way to run/ Mailgun_SyncLogTask::poll() every not and then. This gets the Mailgun events log from the API and saves it to the local database so you can see when messages got sent, openend and/or bounced etc., (*4)

Example configuration

In your project's _config/config.yml file:, (*5)

MailgunMailer:
  api_key: 'key-goes-here'
  api_domain: 'verified-domain'

In your project's _config.php file:, (*6)

Injector::inst()->registerService(new MailgunMailer(), 'Mailer');

or:, (*7)

// Send email through Mailgun in live environment only
if (Director::isLive()) {
    Injector::inst()->registerService(new MailgunMailer(), 'Mailer');
}

The Versions

03/08 2017

dev-master

9999999-dev

SilverStripe Mailer for sending mail via the Mailgun API

  Sources   Download

BSD-3-Clause

The Requires

 

email mailer silverstripe mailgun

04/07 2016

1.0.4

1.0.4.0

SilverStripe Mailer for sending mail via the Mailgun API

  Sources   Download

BSD-3-Clause

The Requires

 

email mailer silverstripe mailgun

04/07 2016

1.0.3

1.0.3.0

SilverStripe Mailer for sending mail via the Mailgun API

  Sources   Download

BSD-3-Clause

The Requires

 

email mailer silverstripe mailgun

04/07 2016

1.0.2

1.0.2.0

SilverStripe Mailer for sending mail via the Mailgun API

  Sources   Download

BSD-3-Clause

The Requires

 

email mailer silverstripe mailgun

04/07 2016

1.0.1

1.0.1.0

Mailgun mailer class for SilverStripe

  Sources   Download

BSD-3-Clause

The Requires

 

email mailer silverstripe mailgun

04/07 2016

1.0

1.0.0.0

Mailgun mailer class for SilverStripe

  Sources   Download

BSD-3-Clause

The Requires

 

email mailer silverstripe mailgun