alex-salt / yii2-mailgun-mailer
Mailgun Mailer for Yii 2 framework.
Installs: 5 563
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 0
Forks: 23
Type:yii2-extension
Requires
- mailgun/mailgun-php: ~1.8
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2022-02-01 12:48:02 UTC
README
Mailgun mailer for Yii 2 framework.
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist katanyoo/yii2-mailgun-mailer "*"
or add
"katanyoo/yii2-mailgun-mailer": "*"
to the require section of your composer.json
file.
Usage
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(); ?>```