alexeevdv/yii2-mailgun-mailer

This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

1.0.2 2018-02-25 09:43 UTC

This package is auto-updated.

Last update: 2021-09-29 02:12:04 UTC


README

Build Status codecov PHP 5.6 PHP 7.0 PHP 7.1 PHP 7.2

Yii2 mailer implementation that send mails via mailgun.com

Installation

The preferred way to install this extension is through composer.

Either run

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

or add

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

to the require section of your composer.json file.

Configuration

Through application component

use alexeevdv\mailer\MailgunMailer;

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