Skip to content

stone-shawn/simple-yii-smtp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

simple-yii-smtp

This is a very simple Yii smtp component.

Config:

  
  'import' => array(
      'application.extensions.simple-smtp.*',
  ),

  'components' => array(

    'mailer' => array(
      'class' => 'Smtp',
      'debug' => true,
      'relay_host' => 'smtp.test.loc',
      'smtp_port' => 25,
      'time_out' => 30,
      'auth' => true,
      'host_name' => 'localhost',
      'log_file' => '',
      'sock' => false,
      'user' => '[email protected]',
      'pass' => '*****',
    ),
  ),
  

Usage:

  
    $subject =  "A test mail from leiswork";
    $message = "Hello world!!";
    $to = '[email protected]';
    $mailtype = "HTML";
    Yii::app()->mailer->sendmail($to, $subject,$message, $mailtype, "utf-8");

  

About

This is a very simple Yii smtp component

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages