https://github.com/mehedimi/laravel-sendgrid
SendGrid mailer for Laravel Framework.
https://github.com/mehedimi/laravel-sendgrid
laravel laravel-package sendgrid sendgrid-integration
Last synced: over 1 year ago
JSON representation
SendGrid mailer for Laravel Framework.
- Host: GitHub
- URL: https://github.com/mehedimi/laravel-sendgrid
- Owner: mehedimi
- Created: 2021-09-13T12:47:43.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-09-16T15:37:02.000Z (over 4 years ago)
- Last Synced: 2025-01-18T06:28:44.123Z (over 1 year ago)
- Topics: laravel, laravel-package, sendgrid, sendgrid-integration
- Language: PHP
- Homepage: https://packagist.org/packages/mehedimi/laravel-sendgrid
- Size: 17.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

# SendGrid mailer for Laravel Framework
## Installation
```shell
composer require mehedimi/laravel-sendgrid
```
## Configure
First you need to add the sendgrid api config `services.php` file
```
'sendgrid' => [
'api_key' => env('SENDGRID_API_KEY')
]
```
Next you need to add the sendgrid mailable config into `mail.php` file on `mailers` array
```
'sendgrid' => [
'transport' => 'sendgrid',
'options' => [
// optional sendgrid `/mail/send` endpoints value (if you need)
]
],
```
Third step you need to add `SENDGRID_API_KEY` environment variable on the `.env` file and set value of `MAIL_MAILER` to `sendgrid`