Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Laravel Sendgrid Notification Channel

Laravel Sendgrid Notification Channel Laravel Package

swiftmade/laravel-sendgrid-notification-channel

Send email notifications through SendGrid’s API in Laravel. This channel supports dynamic templates, attachments, categories, custom data, and per-notification configuration, giving you a reliable alternative to SMTP for transactional mail.

View on GitHub
Deep Wiki
Context7

Sendgrid driver for Laravel notifications. Supports dynamic templates.

Frequently asked questions about Laravel Sendgrid Notification Channel
How do I install and configure the SendGrid notification channel in Laravel?
Install with composer require swiftmade/laravel-sendgrid-notification-channel, add your SendGrid API key to config/services.php under a sendgrid entry, typically sourced from SENDGRID_API_KEY, and add SendGridChannel::class to the via() array of the notification you want to route through SendGrid. No schema changes or infrastructure are required. Keep your existing mail transport in place for other notifications while you validate deliverability.
Which Laravel versions does swiftmade/laravel-sendgrid-notification-channel support?
Release v2.10.0 added Laravel 13 compatibility as a minor version, and the package is intended for Laravel 10, 11, 12, and 13 applications. Because a single minor release cannot satisfy every framework constraint simultaneously, check the composer.json constraint floor before assuming one version covers both your current and target Laravel versions. If you are mid-upgrade, you may need to pin different versions across environments.
Does this package support SendGrid dynamic templates?
Yes. The channel is designed for SendGrid's API and explicitly supports dynamic templates, so you can reference a SendGrid template ID and pass template data from your notification. That avoids hand-building HTML for every transactional message. Confirm the exact payload passthrough during a spike if you rely on advanced personalization.
Can I add attachments, categories, and custom data to SendGrid notifications?
The package advertises support for attachments, categories, custom data, and per-notification configuration in addition to dynamic templates. These map to common SendGrid API features used for routing, analytics, and ASM or category grouping. Validate the specific fields you need because feature coverage is not fully evidenced by release notes alone.
How is the SendGrid API key configured, and does it support per-notification credentials?
Configuration is typically read from config/services.php and environment variables such as SENDGRID_API_KEY. The assessment questions whether per-notification or multi-tenant credentials are supported, so treat that as an integration spike item if you send on behalf of customers. For single-tenant apps, the standard services entry is low friction.
Does the channel work with Laravel queues and ShouldQueue?
The channel plugs into Laravel's notification abstraction, so it composes with Laravel's queueing and ShouldQueue rather than introducing a separate delivery path. That means queued notifications should follow the same retry and backoff behavior as other notification channels. The assessment flags honoring ShouldQueue as a question to confirm, so test a queued notification in your spike.
How do I test notifications sent through this SendGrid channel?
Use Laravel's Notification::fake() to assert that a notification is routed to the SendGrid channel without making external API calls. To verify the SendGrid payload, mock the HTTP boundary or the underlying SendGrid SDK client in your test suite. The package's own test strategy and whether it includes a contract test against SendGrid's API shape are worth confirming during evaluation.
What are the alternatives to this package for sending transactional email in Laravel?
Alternatives include Laravel's built-in SMTP mail transport, other community SendGrid notification channels, or a custom notification channel built directly on SendGrid's PHP SDK. This package's advantage is a narrow adapter that respects Laravel's NotificationChannel contract and supports dynamic templates. Choose based on maintenance risk, SDK version, and whether you need webhook processing.
Does this package handle SendGrid webhooks like bounces and spam reports?
No. This package sends email notifications through SendGrid's API; it does not process SendGrid event webhooks such as bounces, blocks, spam reports, or opens. Delivery-status handling remains your application's responsibility. Pair it with a separate webhook endpoint if you need suppression management or engagement tracking.
Is swiftmade/laravel-sendgrid-notification-channel actively maintained and safe for production?
The package is community-maintained with a small contributor pool, so bus factor is the main risk. Laravel 13 support landing promptly in v2.10.0 is a positive signal, but you should keep the integration trivially replaceable behind your own adapter. Also confirm which SendGrid PHP SDK version is pinned and whether that SDK still receives upstream security maintenance.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
pharaonic/laravel-notification-dependencies
beautinow/translug
dev-brainiac/bot-cloaked
octoberrain/html
octoberrain/extension
octoberrain/exception
octoberrain/contracts
frankyso/ipaymu
3mdikram/worldmoneywords
snowsoft/config
itmosoft/laravel-subscriptions
larva/laravel-ai-qwen
adachsoft/api-version-bundle
cgv/localized-resource
noith/settings
kda/laravel-package
kda/filament-dynamic-navigation
bypersoft/signbox
pairus/product-data
fayne/laravel-filament-cms-core