Skip to content

yamaha252/yii2-mailgun-mailer

This branch is 9 commits ahead of, 2 commits behind katanyoo/yii2-mailgun-mailer:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Елькин Сергей
Jun 4, 2015
2a0eee4 · Jun 4, 2015

History

24 Commits
Jun 2, 2015
Jun 4, 2015
Jun 1, 2015
Jun 1, 2015

Repository files navigation

Yii2 Mailgun Mailer

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 yamaha252/yii2-mailgun-mailer "*"

or add

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

About

Mailgun Mailer for Yii2 framework.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%