Download the PHP package s-ichikawa/laravel-sendgrid-driver without Composer
On this page you can find all versions of the php package s-ichikawa/laravel-sendgrid-driver. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download s-ichikawa/laravel-sendgrid-driver
More information about s-ichikawa/laravel-sendgrid-driver
Files in s-ichikawa/laravel-sendgrid-driver
Package laravel-sendgrid-driver
Short Description This library adds a 'sendgrid' mail driver to Laravel.
License MIT
Informations about the package laravel-sendgrid-driver
Laravel SendGrid Driver
A Mail Driver with support for Sendgrid Web API, using the original Laravel API. This library extends the original Laravel classes, so it uses exactly the same methods.
To use this package required your Sendgrid Api Key. Please make it Here.
Compatibility
Laravel | laravel-sendgrid-driver |
---|---|
9, 10, 11 | ^4.0 |
7, 8 | ^3.0 |
5, 6 | ^2.0 |
Install (for Laravel)
Add the package to your composer.json and run composer update.
or installed with composer
Install (for Lumen)
Add the package to your composer.json and run composer update.
or installed with composer
Add the sendgrid service provider in bootstrap/app.php
Create mail config files. config/mail.php
Configure
.env
config/services.php (In using lumen, require creating config directory and file.)
config/mail.php
endpoint config
If you need to set custom endpoint, you can set any endpoint by using endpoint
key.
For example, calls to SendGrid API through a proxy, call endpoint for confirming a request.
How to use
Every request made to /v3/mail/send will require a request body formatted in JSON containing your email’s content and metadata. Required parameters are set by Laravel's usually mail sending, but you can also use useful features like "categories" and "send_at".
more info https://www.twilio.com/docs/sendgrid/api-reference/mail-send/mail-send
Laravel 10, 11:
Laravel 9:
Using Template Id
Illuminate\Mailer has generally required a view file. But in case of using template id, set an empty array at view function.
Laravel 10, 11:
Laravel 9:
All versions of laravel-sendgrid-driver with dependencies
illuminate/notifications Version ^9.0||^10.0||^11.0
illuminate/support Version ^9.0||^10.0||^11.0
guzzlehttp/guzzle Version ^7.2