rayhan/ray-mailer
Composer 安装命令:
composer require rayhan/ray-mailer
包简介
A mailer plugin for CakePHP3 using database driven Layouts and Templates.
README 文档
README
RayMailer plugin for CakePHP
Installation
You can install this plugin into your CakePHP application using composer.
The recommended way to install composer packages is:
composer require rayhan/ray-mailer
Configuration
Add following line to your app bootstrap.php file.
Plugin::load('RayMailer', ['routes' => true]);
Database
Add database schema from the config/Schema/raymailer.sql file.
Usage
Create Layouts and Templates
Access templates at http://path_to_your_cake_installation/ray-mailer/templates
Create database layout and templates as necessary.
Load mailer class
use RayMailer\Mailer\RayMailer;
Send email
$mailer = new RayMailer();
$result = $mailer->deliver('welcome-email', ['to' => 'example@example.com', 'param1' => 'Value of param1'], ['debug' => false]);
统计信息
- 总下载量: 520
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-10-09