Weave Code
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

Resend Laravel Laravel Package

resend/resend-laravel

Laravel integration for Resend with a facade and Symfony Mailer transport. Configure your RESEND_API_KEY, send via Resend::emails()->send(), or use the bundled Laravel mailer by setting transport=resend and MAIL_MAILER=resend.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Replace legacy email providers: Migrate from SendGrid, Mailgun, or AWS SES to Resend for cost efficiency, improved deliverability, and modern API features (e.g., tags, idempotency keys, and webhooks).
  • Enhance email reliability: Leverage Resend’s built-in retries, deduplication, and real-time event tracking (e.g., email.failed, email.received) to improve user communication reliability.
  • Unify email infrastructure: Standardize email delivery across Laravel/Symfony applications by replacing ad-hoc SMTP or third-party SDKs with a single, maintained package.
  • Enable advanced features:
    • Tags/Idempotency: Track emails by campaign (e.g., "onboarding," "marketing") and prevent duplicates.
    • Webhooks: Trigger serverless functions or database updates on email events (e.g., bounces, opens) without polling.
    • Attachments: Support for inline images, custom MIME types, and dynamic attachments (e.g., PDFs, ICS files).
  • Roadmap alignment: Prioritize features like domain verification (for custom domains) or template rendering (for branded emails) if Resend expands these capabilities.
  • Build vs. Buy: Avoid custom integrations by adopting a battle-tested, vendor-supported SDK (Resend’s Laravel package is actively maintained by the provider).

When to Consider This Package

  • Adopt if:

    • Your stack uses Laravel 11+ or Symfony Mailer v8 (PHP 8.1+).
    • You need real-time email event tracking (webhooks for email.failed, contact.created, etc.).
    • Your team prefers developer-friendly APIs over SMTP or legacy providers.
    • You’re evaluating cost-effective alternatives to SendGrid/Mailgun (Resend offers free tier + pay-as-you-go).
    • You require idempotency keys or tagging for analytics/reporting.
  • Look elsewhere if:

    • You’re on Laravel <11 or PHP <8.1 (use Resend’s PHP SDK directly).
    • Your use case demands enterprise-grade support (e.g., 24/7 SLAs, dedicated account managers).
    • You need advanced templating (e.g., React-based email components) beyond HTML/CSS attachments.
    • Your budget requires volume discounts (Resend’s pricing may not match legacy providers for high send volumes).
    • You’re locked into Microsoft 365/Exchange for domain email (Resend focuses on transactional/outbound emails).

How to Pitch It (Stakeholders)

For Executives:

*"Resend’s Laravel SDK lets us replace our current email provider with a modern, cost-efficient solution that improves deliverability and gives us real-time visibility into email events. Key benefits:

  • Cost savings: Pay-as-you-go pricing with a generous free tier (10k/month).
  • Reliability: Built-in retries and deduplication reduce bounce complaints.
  • Scalability: Handles high-volume sends (e.g., notifications, digests) without infrastructure changes.
  • Data insights: Webhooks trigger automated actions (e.g., resend failed emails, update CRM) without manual checks. We’re proposing a 2-week pilot to migrate critical email flows (e.g., password resets, onboarding) and measure deliverability improvements."*

For Engineering:

*"This package replaces our custom SMTP/third-party SDKs with Resend’s official Laravel integration, offering:

  • Seamless Laravel Mailer support: Drop-in replacement for MAIL_MAILER=resend (no major refactoring).
  • Webhook middleware: Built-in VerifyWebhookSignature to securely process Resend events (e.g., email.failed).
  • Modern features: Tags, idempotency keys, and attachments (inline images, custom MIME types) out of the box.
  • Performance: Under-the-hood optimizations (e.g., header preservation, PHP 8.5+ support). Migration effort: ~1 day for config updates + testing; leverages existing Mailable classes. Example:
// Before (SendGrid)
Mail::to('user@example.com')->send(new WelcomeEmail());

// After (Resend)
Mail::mailer('resend')->to('user@example.com')->send(new WelcomeEmail());

Trade-offs: No native support for Laravel <11, but we can phase out legacy versions."*

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.
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky
spatie/mailcoach-vapor