Skip to content

alexok/email

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

email

Yii mail extension

Configure

'components'=>array(
    'email'=>array(
        'class'=>'application.extensions.email.Email',
        'delivery'=>'php', //Will use the php mailing function.
        //May also be set to 'debug' to instead dump the contents of the email into the view
    ),
...

Example code:

$email = Yii::app()->email;
$email->to = '[email protected]';
$email->subject = 'Hello';
$email->message = 'Hello brother';
$email->send();

Debug widget:

<?php $this->widget('application.extensions.email.debug'); ?>

About

Yii mail extension

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages