cakephp-plugin cakephp-mailgun
- Thursday, November 6, 2014
- by codaxis
- Repository
- 2 Watchers
- 8 Stars
- 3,156 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 7 Forks
- 1 Open issues
- 2 Versions
- 2 % Grown
CakePHP Mailgun Transport
Allows sending emails via Mailgun by using the provided SDK., (*1)
Supports email parameters listed in http://documentation.mailgun.com/api-sending.html#sending., (*2)
Requirements
- PHP 5.4 or later
- Composer
Installation
- Install with composer by running
composer require codaxis/cakephp-mailgun:1.*
- Include the plugin in your bootstrap's
CakePlugin::load('Mailgun')
or CakePlugin::loadAll()
Example of configuration
<?php
class EmailConfig {
public $mailgun = array(
'transport' => 'Mailgun.Mailgun',
'mg_domain' => 'my-domain.mailgun.org',
'mg_api_key' => 'my-mailgun-key'
'from' => array('no-reply@my-app.com' => 'My App'),
// Custom mailgun email, e.g.:
// 'o:tag' => 'tag1',
// 'o:campaign' => 'my-campaign',
);
}