alex-salt/yii2-mailgun-mailer

This package is abandoned and no longer maintained. The author suggests using the e96/yii2-mailgun-mailer package instead.

Mailgun Mailer for Yii 2 framework.

Installs: 5 563

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 0

Forks: 23

Type:yii2-extension

v1.0.1 2015-09-25 12:33 UTC

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();
?>```