Sendgrid mail driver for Laravel

2.0.1 2017-12-29 18:30 UTC

This package is not auto-updated.

Last update: 2024-07-19 06:29:00 UTC



Require this package with composer using the following command:

composer require clarification/sendgrid-laravel-driver

After updating composer, add the service provider to the providers array in config/app.php


You will also need to add the sendgrid API Key settings to the array in config/services.php and set up the environment key

'sendgrid' => [
    'api_key' => env('SENDGRID_API_KEY'),

Then in your .env file you have to add


Finally you need to set your mail driver to sendgrid. You can do this by changing the driver in config/mail.php

'driver' => env('MAIL_DRIVER', 'sendgrid'),

Or by setting the environment variable MAIL_DRIVER in your .env file


If you need to pass any options to the guzzle client instance which is making the request to the Send Grid API, you can do so by setting the 'guzzle' options in config/services.php

'sendgrid' => [
    'api_key' => env('SENDGRID_API_KEY'),
    'guzzle' => [
        'verify' => true,
        'decode_content' => true,