advicepharmagroup/mailup
最新稳定版本:1.4.0
Composer 安装命令:
composer require advicepharmagroup/mailup
包简介
Driver for sending emails via Mailup api
关键字:
README 文档
README
A Laravel package for sending emails using the MailUp service API.
Installation
You can install the package via composer:
composer require advicepharmagroup/mailup
Basic Usage
- In the
config/services.phpfile add the following lines of code:
... 'mailup' => [ 'host' => env('MAILUP_HOST'), 'user' => env('MAILUP_USER'), 'secret' => env('MAILUP_SECRET'), 'proxy' => env('MAILUP_PROXY'), 'force_html' => true, ], ...
- In the
config/mail.phpfile add the following lines of code:
'mailers' => [ ... 'mailup' => [ 'transport' => 'mailup', ], ],
- In your .env file:
... MAILUP_HOST=HOST MAILUP_USER=YOUR_USERNAME MAILUP_SECRET=YOUR_SECRET ...
- Example:
Route::get('/mail', function () { Mail::raw('Hello world', function (Message $message) { $message ->to('to@mail.com') ->from('from@mail.com'); }); });
统计信息
- 总下载量: 629
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-07-31