understeam/yii2-mailgun

Lightweight Mailgun library for Yii2 framework

v0.2.2 2019-02-13 11:01 UTC

This package is not auto-updated.

Last update: 2024-12-21 12:40:23 UTC


README

Latest version

Install through Composer:

composer require understeam/yii2-mailgun:^0.2 --prefer-dist

Configure:

...
'mailer' => [
    'class' => 'understeam\mailgun\Mailer',
    'domain' => 'domain.com',
    'apiKey' => 'api-key',
],
...

Use:

$message = Yii::$app->mailer->compose('@common/mail/signup', ['user' => $user]);
$message->send();