jorgecortesdev/sendgrid-laravel
最新稳定版本:1.0.3
Composer 安装命令:
composer require jorgecortesdev/sendgrid-laravel
包简介
Laravel wrapper for the official SendGrid PHP library.
README 文档
README
A Laravel wrapper for the official SendGrid PHP library, providing a simple and elegant way to send emails through SendGrid in your Laravel applications.
🚨 Note
IMPORTANT: This package currently provides only the most basic functionality required to send emails using SendGrid. No advanced features or additional abstractions are included. Feel free to submit a PR if you'd like to extend the functionality!
Installation
You can install the package via Composer:
composer require jorgecortesdev/sendgrid-laravel
Configuration
it
Update your .env file with the SendGrid API key:
SENDGRID_API_KEY=
Second, add the following configuration to the config/services.php file. The data_residency option can be either 'eu' or 'global':
'sendgrid' => [ 'api_key' => env('SENDGRID_API_KEY'), 'options' => [ 'data_residency' => 'global' ], ],
Lastly, add the following configuration array to your array of mailers in the config/mail.php file:
'sendgrid' => [ 'transport' => 'sendgrid', ],
Usage
Update your .env file with the new mailer:
MAIL_MAILER=sendgrid
Don't forget to add a from address does match a verified Sender Identity.
MAIL_FROM_ADDRESS="john@allowed.domain"
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 125
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-03-21