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.
Resend facade) and Laravel’s mail system, offering flexibility for teams with varying needs (e.g., transactional emails vs. templated mailables).VerifyWebhookSignature) and event handling for email.failed, email.received, and contact/webhook events enable real-time email tracking and automation, which is critical for modern email workflows.MAIL_MAILER=resend in .env). No database migrations or schema changes are needed.email.failed events) introduce external system dependencies. Ensure your infrastructure can handle retries and failures gracefully.RESEND_API_KEY be managed across dev/staging/prod environments? Use Laravel’s .env files or a secrets manager.Mailable classes for templated emails.Sent, Failed) for extensibility.composer require resend/resend-laravel..env with RESEND_API_KEY and MAIL_MAILER=resend.Resend::emails()->send()) and Laravel’s mail system (Mail::to()->send()).config/mail.php to use the Resend transport.email.failed).laravel-notification-channels if using multi-channel notifications.RESEND_API_KEY to .env.config/resend.php (if customization is needed).MAIL_MAILER=resend in .env.config/mail.php to use the Resend transport.email.failed).Resend::emails()->send() responses)..env and config/mail.php for changes across environments. Use Laravel’s config caching to reduce runtime overhead.Mail::failures() and Mail::sent() events can help debug delivery issues.Mail::sent() events) and set budget alerts.| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Resend API outage | Emails not sent | Implement a fallback mailer (e.g., SMTP) with circuit breakers. |
| Webhook delivery failures | Unreliable event tracking | Use Laravel queues + retries for webhook processing. |
| API key leakage | Security breach | Rotate keys via .env and use Laravel’s env() helper. |
| Cost overruns | Budget exceeded | Set up Resend’s usage alerts and monitor logs. |
| Laravel/Resend version mismatch | Integration breaks | Pin package versions in composer.json and test upgrades. |
| Attachment failures | Emails sent without |
How can I help you explore Laravel packages today?