Skip to content

yamaha252/yii2-mailgun-mailer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

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%