YiiMailer is an simple mail extensions ¶
- Requirements
- Configuration
- Usage
- Resources
Requirements ¶
- PHP >= 5
- fsockopen function or configuration php mail
Configuration ¶
'components' => array(
'mailer' => array(
'class' => 'ext.mailer.SmtpMailer',
'server' => 'smtp.163.com',
'port' => '25',
'username' => 'your username',
'password' => 'your password',
'class' => 'ext.mailer.PhpMailer',
),
)
Usage ¶
$to = array(
'somemail@gmail.com',
);
$to = 'somemail@gmail.com';
$subject = 'Hello Mailer';
$content = 'Some content';
Yii::app()->mailer->send($to, $subject, $content);
Resources ¶
Github repo
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.