tlikai/yii-mailer
Composer 安装命令:
composer require tlikai/yii-mailer
包简介
YiiMailer is a mail extensions based on Yii Framework
README 文档
README
Requires
- PHP >= 5
- fsockopen function or configuration php mail
Configuration
'components' => array(
'mailer' => array(
// for smtp
'class' => 'ext.mailer.SmtpMailer',
'server' => 'smtp.163.com',
'port' => '25',
'username' => 'your username',
'password' => 'your password',
// for php mail
'class' => 'ext.mailer.PhpMailer',
),
)
Usage
$to = array(
'somemail@gmail.com',
);
// or
$to = 'somemail@gmail.com';
$subject = 'Hello Mailer';
$content = 'Some content';
Yii::app()->mailer->send($to, $subject, $content);
统计信息
- 总下载量: 55
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: New
- 更新时间: 2013-05-15