2017 © Pedro Peláez
 

yii2-extension yii2-unisendermailer

The Unisender integration for the Yii framework

image

ereminmdev/yii2-unisendermailer

The Unisender integration for the Yii framework

  • Monday, February 26, 2018
  • by ereminmdev
  • Repository
  • 0 Watchers
  • 0 Stars
  • 32 Installations
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 3 % Grown

The README.md

Unisender mailer Extension for Yii 2

Installation

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

Either run, (*2)

php composer.phar require --prefer-dist ereminmdev/yii2-unisendermailer

or add, (*3)

"ereminmdev/yii2-unisendermailer": "~1.0"

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

Usage

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

return [
    //....
    'components' => [
        'uniMailer' => [
            'class' => 'ereminmdev\yii2\unisendermailer\Mailer',
            'viewPath' => '@common/mail',
            'platform' => 'Yii',
            'apiKey' => '...',
            'listId' => ...,
            'maxSimpleCount' => 0,
            'senderName' => '...',
            'senderEmail' => '...',
            'smsSenderName' => '...',
        ],
    ],
];

You can then send an e-mail as follows:, (*6)

Yii::$app->uniMailer->compose('contact/html')
    ->setFrom('from@domain.com')
    ->setTo($form->email)
    ->setSubject($form->subject)
    ->send(); // or ->sendEmail();

To send sms:, (*7)

Yii::$app->uniMailer->compose('contact/html')
    ->setFrom('from@domain.com')
    ->setTo($form->phone)
    ->setSubject($form->subject)
    ->setType(Message::TYPE_SMS)
    ->send(); // or ->sendSms();

For further instructions refer to the related section in the Yii Definitive Guide., (*8)

The Versions

26/02 2018

dev-master

9999999-dev https://bitbucket.org/ereminmdev/yii2-unisendermailer

The Unisender integration for the Yii framework

  Sources   Download

MIT

The Requires

 

by Michael Eremin

mail email yii2 mailer unisender

26/02 2018

v1.0.3

1.0.3.0 https://bitbucket.org/ereminmdev/yii2-unisendermailer

The Unisender integration for the Yii framework

  Sources   Download

MIT

The Requires

 

by Michael Eremin

mail email yii2 mailer unisender

22/08 2017

v1.0.2

1.0.2.0 https://bitbucket.org/ereminmdev/yii2-unisendermailer

The Unisender integration for the Yii framework

  Sources   Download

MIT

The Requires

 

by Michael Eremin

mail email yii2 mailer unisender

18/08 2017

v1.0.1

1.0.1.0 https://bitbucket.org/ereminmdev/yii2-unisendermailer

The Unisender integration for the Yii framework

  Sources   Download

MIT

The Requires

 

by Michael Eremin

mail email yii2 mailer unisender

21/06 2017

v1.0.0

1.0.0.0 https://bitbucket.org/ereminmdev/yii2-unisendermailer

The Unisender integration for the Yii framework

  Sources   Download

MIT

The Requires

 

by Michael Eremin

mail email yii2 mailer unisender