2017 © Pedro Peláez
 

library yii2-sendcloud-mailer

A simple exclusive workflow lib

image

purocean/yii2-sendcloud-mailer

A simple exclusive workflow lib

  • Friday, March 10, 2017
  • by purocean
  • Repository
  • 1 Watchers
  • 0 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Yii2 Sendcloud Mailer

A sendcloud email component for yii2

Usage

// append to yii application config file.
    'components' => [
        // ...
        'mailer' => [
            'class'            => 'SendcloudMailer\Mailer',
            'viewPath'         => '@app/mail',
            'useFileTransport' => false,

            // sendcloud params
            'apiUser'          => 'xxxxx',
            'apiKey'           => 'xxxxx',
            'from'             => 'xxxxx@gmail.com',
            'fromName'         => 'xxxxx',
        ],
        // ...
    ]

// some php file
Yii::$app
    ->mailer
    ->compose(
        ['html' => 'template_html'],
        ['var' => 'HELLOWORLD!']
    )
    ->setTo('xxxxx@gmail.com')
    ->setCc('xxxxx@qq.com')
    ->setSubject('subject')
    ->send();

Test

cd test
vim test.php # config params
php test.php

The Versions

10/03 2017

dev-master

9999999-dev https://github.com/purocean/yii2-sendcloud-mailer

A simple exclusive workflow lib

  Sources   Download

MIT

The Requires

 

email yii2 mailer sendcloud

10/03 2017

v0.0.2

0.0.2.0 https://github.com/purocean/yii2-sendcloud-mailer

A simple exclusive workflow lib

  Sources   Download

MIT

The Requires

 

email yii2 mailer sendcloud

28/02 2017

v0.0.1

0.0.1.0 https://github.com/purocean/yii2-sendcloud-mailer

A simple exclusive workflow lib

  Sources   Download

MIT

The Requires

 

email yii2 mailer sendcloud