tmukherjee13/yii2-mailer

A custom modular mailer extension for Yii2

Installs: 50

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:yii2-extension

v0.1 2017-01-18 09:58 UTC

This package is auto-updated.

Last update: 2024-11-10 06:07:19 UTC


README

A custom modular mailer extension for Yii2

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist tmukherjee13/yii2-mailer "*"

or add

"tmukherjee13/yii2-mailer": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

$emailReset = new \tmukherjee13\mailer\ResetPassword(array(
            'user' => Yii::$app->user->identity,
            'hash' => 'asdfas56ads1f1asdfdf',
            /* other dynamic data for email */
        ));
        $emailReset->send();```