2017 © Pedro Peláez
 

yii2-extension yii2-mailgun-mailer

image

alexeevdv/yii2-mailgun-mailer

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

yii2-mailgun-mailer

Build Status codecov PHP 5.6 PHP 7.0 PHP 7.1 PHP 7.2, (*1)

Yii2 mailer implementation that send mails via mailgun.com, (*2)

Installation

The preferred way to install this extension is through composer., (*3)

Either run, (*4)

$ php composer.phar require alexeevdv/yii2-mailgun-mailer "~1.0"

or add, (*5)

"alexeevdv/yii2-mailgun-mailer": "~1.0"

to the require section of your composer.json file., (*6)

Configuration

Through application component

use alexeevdv\mailer\MailgunMailer;

//...
'components' => [
    //...
    'mailer' => [
        'class' => MailgunMailer::class,
        'apiKey' => 'YOUR_API_KEY',
        'domain' => 'your-domain.tld',
    ],
    //...
],
//...

The Versions