understeam / yii2-mailgun
Lightweight Mailgun library for Yii2 framework
Installs: 8 379
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 3
Open Issues: 2
Requires
- php: >=5.5
- yiisoft/yii2: ~2.0
- yiisoft/yii2-httpclient: dev-master
Requires (Dev)
- codeception/codeception: ~2.1
- codeception/verify: ~0.3
This package is not auto-updated.
Last update: 2024-12-21 12:40:23 UTC
README
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();