fawno/fawnoemail
Composer 安装命令:
composer require fawno/fawnoemail
包简介
FawnoEmail for CakePHP 3
README 文档
README
FawnoEmail
Extend Cake\Mailer\Email allowing image inline in templates.
Install via composer
Since v3, CakePHP uses composer, the easiest way to set up is by either running
composer require fawno/fawnoemail
Usage
Whenever you need to send email, ensure this class is loaded:
use Fawno\Mailer\FawnoEmail;
Use the class as normal CakeEmail:
$email = new FawnoEmail(); $email->to(array('example@example.com' => 'Example')); $email->subject('Example Email'); $email->template('default'); $email->send();
In template:
<img src="cid:/full/path/image"> <img src="cid:///full/path/image"> <img src="file:/full/path/image"> <img src="file:///full/path/image"> echo $this->Html->image('cid:///full/path/image'); echo $this->Html->image('file:///full/path/image');
统计信息
- 总下载量: 114
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-10-14