sers/yii-mail

This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

Yii send mail

Installs: 11

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 1

Open Issues: 0

Type:yii-extension

dev-master 2014-07-08 14:39 UTC

This package is not auto-updated.

Last update: 2021-09-13 00:41:39 UTC


README

Installation

  'import' => array(
    'backend.extensions.yii-mail.models.*',
  ),
  'components' => array(
    '...',
      'mail' => array(
      'class' => 'app.extensions.yii-mail.YiiMail',
    ),
    'config'=>array(
  	'class' => 'app.extensions.yii-config.EConfig',
  	'...',
    ),
    '...',
  ),

Usage

  Yii::app()->mail->send("USER_REGISTER", array(
    "#USER_LOGIN#" => $model->login,
    "#USER_EMAIL#" => $model->email,
    "...",
  ));