Skip to content

Allows sending emails via Mailgun. Compatible with 2.0 API.

License

Notifications You must be signed in to change notification settings

SilphRoad/cakephp-mailgun

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CakePHP Mailgun Transport

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('[email protected]' => 'My App'),

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

About

Allows sending emails via Mailgun. Compatible with 2.0 API.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%