queencitycodefactory/cakemailslurp
最新稳定版本:3.0
Composer 安装命令:
composer require queencitycodefactory/cakemailslurp
包简介
CakePHP 3 MailSlurp Plugin
README 文档
README
CakePHP Plugin for MailSlurp
Requirements
- CakePHP 3.x
- PHP 7.2
Installation
[Using Composer]
composer require queencitycodefactory/cakemailslurp
Enable plugin
Load the plugin in your app's config/bootstrap.php file:
Plugin::load('CakeMailSlurp', ['bootstrap' => false, 'routes' => false]);
OR load in src/Application.php for CakePHP 3.6+
$this->addPlugin('CakeMailSlurp', ['bootstrap' => true, 'routes' => false]);
Usage For Replacing Mail or Smtp Transport
In config/app.php or config/app_local.php setup the EmailTransport config array:
'EmailTransport' => [ 'default' => [ 'className' => MailSlurpTransport::class, /* * The following keys are used in MailSlurp transports: */ 'inboxId' => 'your-inbox-id-goes-here', // The Inbox Id from MailSlurp 'apiKey' => 'your-api-key-goes-here', // The API Key from MailSlurp 'email' => 'your-email-goes-here', // The Email Address for the above Inbox Id 'url' => env('EMAIL_TRANSPORT_DEFAULT_URL', null), ], 'debug' => [ 'className' => 'Debug', ], ],
Your existing code should still work if switching from MailTransport or SmtpTransport. This was built for transactional system emails.
统计信息
- 总下载量: 178
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-10-28