thienhungho/yii2-mail

Yii2 mail

Installs: 79

Dependents: 1

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

Type:yii2-extension

v1.0.3 2018-12-25 10:23 UTC

This package is auto-updated.

Last update: 2024-03-25 19:42:43 UTC


README

Mail System for Yii2

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist thienhungho/yii2-mail "*"

or add

"thienhungho/yii2-mail": "*"

to the require section of your composer.json file.

Migration

Run the following command in Terminal for database migration:

yii migrate/up --migrationPath=@vendor/thienhungho/Mail/migrations

Or use the namespaced migration (requires at least Yii 2.0.10):

// Add namespace to console config:
'controllerMap' => [
    'migrate' => [
        'class' => 'yii\console\controllers\MigrateController',
        'migrationNamespaces' => [
            'thienhungho\Mail\migrations\namespaced',
        ],
    ],
],

Then run:

yii migrate/up

Config

Add module MailTransportManage to your AppConfig file.

...
'modules'          => [
    ...
    /**
     * Mail Transport Manage
     */
     'mail-transport-manage' => [
        'class' => 'thienhungho\Mail\modules\MailTransportManage\MailTransportManageModules',
     ],
    ...
],
...

Modules

Mail, MailTransport, MailTransportManage

Functions

Core

Models

Mailer, MailTransport