Yii2 mailer implementation that send mails via mailgun.com
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.
use alexeevdv\mailer\MailgunMailer;
//...
'components' => [
//...
'mailer' => [
'class' => MailgunMailer::class,
'apiKey' => 'YOUR_API_KEY',
'domain' => 'your-domain.tld',
],
//...
],
//...