2017 © Pedro Peláez
 

yii2-extension yii2-mailgun

Mailgun mailer component for Yii 2 framework.

image

ninjacto/yii2-mailgun

Mailgun mailer component for Yii 2 framework.

  • Thursday, December 8, 2016
  • by farmani
  • Repository
  • 1 Watchers
  • 2 Stars
  • 319 Installations
  • HTML
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 9 % Grown

The README.md

Yii2 Mailgun Mailer

Latest Version on Packagist ![Software License][ico-license] Build Status ![Coverage Status][ico-scrutinizer] Quality Score ![Total Downloads][ico-downloads], (*1)

Mailgun mailer for Yii 2 framework., (*2)

Install

Via Composer, (*3)

``` bash $ composer require ninjacto/yii2-mailgun, (*4)


## Config ```php 'components' => [ ... 'mailer' => [ 'class' => 'ninjacto\yii2mailgun\Mailer', 'domain' => 'example.com', 'key' => 'key-somekey', 'tags' => ['yii'], 'enableTracking' => false, ], ... ], ?>

Usage

Once the extension is installed, simply use it in your code by :, (*5)

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

Change log

Please see CHANGELOG for more information what has changed recently., (*6)

Testing

bash $ composer test, (*7)

Contributing

Please see CONTRIBUTING and CONDUCT for details., (*8)

Security

If you discover any security related issues, please email ramin.farmani@gmail.com instead of using the issue tracker., (*9)

Credits

License

The MIT License (MIT). Please see License File for more information., (*10)

The Versions

08/12 2016

dev-master

9999999-dev https://github.com/ninjacto/yii2-mailgun

Mailgun mailer component for Yii 2 framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

extension yii2 mailer mailgun ninjacto yii2-mailgun