2017 © Pedro Peláez
 

yii2-extension yii2-mailgunmailer

The MailGun integration for the Yii 2 framework

image

bsadnu/yii2-mailgunmailer

The MailGun integration for the Yii 2 framework

  • Friday, April 27, 2018
  • by bsadnu
  • Repository
  • 1 Watchers
  • 0 Stars
  • 132 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 3 % Grown

The README.md

MailGun Extension for Yii 2

Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

This extension provides a MailGun mail solution for Yii framework 2.0., (*2)

Installation

The preferred way to install this extension is through composer., (*3)

Either run, (*4)

php composer.phar require --prefer-dist bsadnu/yii2-mailgunmailer "*"

or add, (*5)

"bsadnu/yii2-mailgunmailer": "*"

to the require section of your composer.json., (*6)

Usage

To use this extension, simply add the following code in your application configuration:, (*7)

'components' => [
    ...
    'mailer' => [
        'class' => 'bsadnu\mailgunmailer\Mailer',
        'key' => 'MailGun API Key',
        'domain' => 'domain.name',
    ],
    ...
],

You can then send an email as follows:, (*8)

Yii::$app
    ->mailer
    ->compose(
        ['html' => 'someTemplate-html', 'text' => 'someTemplate-text'],
        ['someVariable' => $someVariable]
    )
    ->setFrom('from@example.com')
    ->setTo('to@example.com')
    ->setSubject('Some subject')
    ->send();

License

yii2-mailgunmailer is released under the BSD 2-Clause License. See the bundled LICENSE for details., (*9)

The Versions

27/04 2018

dev-master

9999999-dev

The MailGun integration for the Yii 2 framework

  Sources   Download

BSD-2-Clause

The Requires

 

by Stanislav Bannikov

mail email extension yii2 mailer mailgun mailgunmailer

27/04 2017

v1.1.0

1.1.0.0

The MailGun integration for the Yii 2 framework

  Sources   Download

BSD-2-Clause

The Requires

 

by Stanislav Bannikov

mail email extension yii2 mailer mailgun mailgunmailer

12/07 2016

v1.0.0

1.0.0.0

The MailGun integration for the Yii 2 framework

  Sources   Download

BSD-2-Clause

The Requires

 

by Stanislav Bannikov

mail email extension yii2 mailer mailgun mailgunmailer