2017 © Pedro Peláez
 

yii2-extension yii2-mailgun

Mailgun integration for the Yii framework

image

iamiamp/yii2-mailgun

Mailgun integration for the Yii framework

  • Friday, January 8, 2016
  • by iamiamp
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 24 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Mailgun

Mailgun integration for the Yii framework, (*1)

Installation

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

Either run, (*3)

php composer.phar require --prefer-dist boundstate/yii2-mailgun "*"

or add, (*4)

"boundstate/yii2-mailgun": "*"

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

Usage

Configure it in the application configuration:, (*6)

'components' => [
    ...
    'mailer' => [
        'class' => 'boundstate\mailgun\Mailer',
        'key' => 'key-example',
        'domain' => 'mg.example.com',
    ],
    ...
],

To send an email, you may use the following code:, (*7)

Yii::$app->mailer->compose('contact/html', ['contactForm' => $form])
    ->setFrom('from@domain.com')
    ->setTo($form->email)
    ->setSubject($form->subject)
    ->send();

The Versions

08/01 2016

dev-master

9999999-dev

Mailgun integration for the Yii framework

  Sources   Download

Apache-2.0

The Requires

 

by Mike Peters

mail email extension yii2 mailer rackspace mailgun

12/05 2015

v0.0.1

0.0.1.0

Mailgun integration for the Yii framework

  Sources   Download

Apache-2.0

The Requires

 

by Mike Peters

mail email extension yii2 mailer rackspace mailgun