silphroad/cakephp-mailgun

There is no license information available for the latest version (v2.0.6) of this package.

Installs: 8 708

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 8

Type:cakephp-plugin

v2.0.6 2018-12-20 03:48 UTC

This package is auto-updated.

Last update: 2024-12-20 17:53:28 UTC


README

Allows sending emails via Mailgun by using the provided SDK.

Supports email parameters listed in http://documentation.mailgun.com/api-sending.html#sending.

Requirements

  • PHP 5.6 or later
  • Composer
  • CakePHP 2.x

Installation

  • Install with composer by running composer require silphroad/cakephp-mailgun
  • Include the plugin in your bootstrap's CakePlugin::load('Mailgun') or CakePlugin::loadAll()
  • Configure Mailgun service

Example of configuration

<?php

class EmailConfig {

    public $mailgun = array(
        'transport'      => 'Mailgun.Mailgun',
        'mailgun_domain' => 'my-domain.mailgun.org',
        'api_key'        => 'my-mailgun-key'
        'from'           => array('no-reply@my-app.com' => 'My App'),

        // Custom mailgun settings, e.g.:
        'o:tag'      => 'tag1',
        'o:campaign' => 'my-campaign',
    );
}