Mailgun mailer for Yii 2 framework.
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist yamaha252/yii2-mailgun-mailer "*"
or add
"yamaha252/yii2-mailgun-mailer": "*"
to the require section of your composer.json
file.
Once the extension is installed, simply use it in your code by :
<?php
Yii::$app->mailer->compose('<view_name>', <option>)
->setFrom("<from email>")
->setTo("<to email>")
->setSubject("<subject>")
// ->setHtmlBody("<b> Hello User </b>")
// ->setTextBody("Hello User")
->send();
?>```