willemo / laravel-appmail-transport
v1.0.3
2017-03-16 12:00 UTC
Requires
- php: >=5.4
- guzzlehttp/guzzle: ~5.3|~6.0
- illuminate/support: 5.1.*|5.2.*|5.3.*|5.4.*
- swiftmailer/swiftmailer: ~5.1
README
AppMail.io邮件传输适用于Laravel 5.x。此包添加了一个支持AppMail.io API v1的邮件驱动。
此项目已废弃
此项目不再受支持。
安装
要安装此包,您需要在composer中要求它
composer require willemo/laravel-appmail-transport:1.*
之后,您需要在config/app.php
中替换Laravel的默认MailServiceProvider
Illuminate\Mail\MailServiceProvider::class, // remove this one Willemo\LaravelAppMailTransport\ExtendedMailServiceProvider::class, // add this one
现在,您需要做的只是将您的AppMail.io服务器密钥添加到config/services.php
文件中,并将APPMAIL_KEY
变量添加到您的.env
文件或环境变量中
config/services.php
'appmail' => [ 'key' => env('APPMAIL_KEY'), ],
.env
APPMAIL_KEY=my_super_secret_appmail_server_key
现在,所有邮件将通过AppMail.io API发送。
待办事项
此包待办事项列表中的内容如下
- 处理来自API的异常;
- 创建一种方式从API的响应中获取消息ID和令牌(可能通过事件);
- 添加测试。