Prerequisites
Before you start, you’ll need:- A Resend API key
- A verified domain
Guide
Install
Get the Resend Mailer Bridge package.If your application relies on Resend webhook events, also install the Symfony Webhook Component.
Composer
Composer
Configuring Mailer
In your Replace
.env.local file, which you can create if needed, add the following:API_KEY with your Resend API key, and SIGNING_SECRET with your webhook secret, which can be retrieved from the Resend dashboard after creating a new webhook endpoint (see below).Send your first email
In a controller, inject the In a controller action, use the Learn more about sending emails with Mailer Component in Symfony’s documentation.
Mailer:$this->mailer to send your email:Receive and handle webhooks
Thanks to the Webhook Component, you can create a webhook listener.Bind your listener to the Webhook routing config:Next, register your application’s webhook endpoint URL (example:
src/Webhook/ResendWebhookListener.php
config/packages/webhook.yaml
https://{app_domain}/webhook/mailer_resend) in the Resend Dashboard:Examples
Symfony App
Full Symfony web application
Basic Send
Basic, batch, and prevent-threading send
Attachments
File attachments and inline images (CID)
Scheduling
Schedule emails for future delivery
Templates
Send emails using Resend hosted templates
Double Opt-in
Double opt-in subscription flow
Inbound Webhooks
Receive and process inbound emails
Audiences
Manage contacts and audiences
Domains
Create and manage sending domains