2017 © Pedro Peláez
 

library d2mailer

Send Email to user

image

dbrisinajumi/d2mailer

Send Email to user

  • Friday, July 14, 2017
  • by uldisn
  • Repository
  • 4 Watchers
  • 0 Stars
  • 89 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 1 % Grown

The README.md

Require

  • SwiftMailer
  • yii-user

/config/main.php

add under module:, (*1)

    'd2mailer' => array(
        'class' => 'vendor.dbrisinajumi.d2mailer.D2mailerModule',
        'fromEmail' => 'uldis@weberp.lv',
        'fromName' => 'Uldis Nelsons',
        'smtp_host' => 'smtp.apollo.lv',
        'smtp_port' => 25,
        'smtp_username' => 'username', //optional
        'smtp_password' => 'password', //optional
    ),         

Usage

    $user_id = 1;
    $subject = 'Subject';
    $message = 'Message';

    Yii::import('vendor.dbrisinajumi.d2mailer.components.*');
    $d2mailer = new d2mailer();     
    if($d2mailer->sendMailToUser($user_id,$subject,$message) === false){
        echo '     ' . $d2mailer->error;
    }                

The Versions

14/07 2017

dev-master

9999999-dev

Send Email to user

  Sources   Download

BSD-3-Clause

The Requires

 

email yii