Skip to content

Latest commit

 

History

History
34 lines (28 loc) · 592 Bytes

README.md

File metadata and controls

34 lines (28 loc) · 592 Bytes

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'); ?>