2017 © Pedro Peláez
 

yii2-extension yii2-mailtank

Yii2 extension for Mailtank Client

image

darkair/yii2-mailtank

Yii2 extension for Mailtank Client

  • Wednesday, July 9, 2014
  • by DarkAiR
  • Repository
  • 1 Watchers
  • 0 Stars
  • 268 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

yii2-mailtank

Yii2 Mailtank (mailtank.ru) extension, (*1)

Installation

Install package

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

Either run, (*3)

$ php composer.phar require darkair/yii2-mailtank "dev-master"

or add, (*4)

"darkair/yii2-mailtank": "dev-master"

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

Migration

You have to copy migrations to your 'migrations' directory cp vendor/darkair/yii2-mailtank/src/migrations/* migrations Then you have to run migrate command for creating DB tables., (*6)

Usage

Add target class in your project config:, (*7)

'components' => [
    'mailtank' => [
        'class' => 'mailtank\Mailtank',
        'host' => 'api.mailtank.ru',
        'token' => '',                          // API access key
        'templatesPath' => '@app/views/mail',   // Path or alias to folder with mailtank templates without end slash 
        'templatePrefix' => 'testproject.com',  // Template prefix, unique for project
        'excludeTemplates' => [                 // Exclude templates like 'base'
            'baseMail',
            'subfolder/otherExcludeMail',
        ],
    ],

Then use:, (*8)

Yii::$app->mailtank->send

The Versions

09/07 2014

dev-master

9999999-dev

Yii2 extension for Mailtank Client

  Sources   Download

BSD

The Requires

 

The Development Requires

by Dmitry DarkAiR Romanov

extension yii2 client mailtank