PHP code example of silphroad / cakephp-mailgun

1. Go to this page and download the library: Download silphroad/cakephp-mailgun library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

silphroad / cakephp-mailgun example snippets




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',
    );
}