ENATIV Logo
ENATIV
Back
© 2026 ENATIV
ProjectsServicesKnowledge hubContact
contact@enativ.pl
  1. Knowledge hub
  2. ›
  3. Integrations
  4. ›
  5. Resend

Resend

Sending email from an app through the Resend API: domain verification, React Email templates, idempotent sends.

IntegrationsUsing since 2023 · Featured project: Budzowska Fiutowski i Partnerzy

Category
Integrations
Using since
2023
Featured project
Budzowska Fiutowski i Partnerzy

In practice

I pick Resend for the emails an application sends: confirmations and notifications from a form. On this site, in ENATIV Portfolio, one form submission sets off two emails. I do not start with a template but with the domain the email will leave from.

What is Resend?

Resend is an email-sending service with an API, made for developers. Email splits into transactional, meaning personalised messages triggered by an event, and campaigns, meaning bulk sends to a contact list. You can send only from a domain you own, added to the account and verified with DNS records, DKIM and SPF among them. A separate subdomain is better than the root domain.

From the application you use an SDK, for Node.js for example, and the body of the email can be a React Email component. Webhooks report delivery and bounces. A repeated send request is guarded by an idempotency key: repeat it within 24 hours and the email goes out only once. All of it fits in an ordinary API route of a Next.js app, with templates written in React.

Kind
An API for sending email
Templates
React Email components

How I work with Resend

I start with the domain and with what happens when an email fails to go out. The template comes after that. Resend ties deliverability to a verified domain, so that decides whether a message can arrive.

  1. Domain and DNS records

    I add the domain, preferably a subdomain for sending, and pass the DNS administrator the records from the Resend dashboard to copy exactly. Verification often takes fifteen minutes but can take up to 72 hours, so I do not leave it to launch day.

  2. Templates in the repository

    I write templates as React Email components and keep them in the repository next to the app, so a change of wording goes through review like code. In ENATIV Portfolio one route sends from them a notification to me in Polish and a confirmation to the visitor in their language.

  3. Retries and the API key

    I give every send an idempotency key, as in the contact route of ENATIV Portfolio, so a retried request does not send the email twice. In a server environment variable I keep the API key. I use no webhooks on this site. When an app has to react to a bounce, I connect a webhook.

When it fits, and when it doesn't

Resend fits apps that decide on their own when to send an email, with a body built from user data.

A good fit when

  • Confirmations and notifications sent after an event in the app, such as a form submission.
  • A React or Next.js project where templates should live in the repository next to the code.
  • A company with its own domain and someone who can add DNS records to it.
  • A team that wants to see the state of a send in a dashboard, not in server logs.

Not a fit when

  • Ordinary company correspondence: that is a job for a mailbox, not an API.
  • A company with no domain, or one that cannot change its DNS.
  • An app with no backend, with nowhere to keep the API key.

When a company already has an email provider with a working verified domain, I stay with it, because a switch means verifying again and new settings. I put the sending in an API route, not in the browser.

Frequently asked questions

I promise no figure, because deliverability depends on the domain and the content. Resend ties it to a verified domain, and on Budzowska Fiutowski i Partnerzy it is there so that form emails and the newsletter land in the inbox, not in spam. Before launch I add SPF and DKIM and test on a few mailboxes.
The company the app is made for. The account and the domain belong to it, and I supply the DNS records that its administrator adds at the domain provider. Server environment variables hold the API key, never browser code.
From the API response, which returns an error or an email id, and from the send history in the dashboard. When the app has to react to delivery or a bounce, webhooks come in. In The Travelling Cows Resend sends booking confirmations automatically.
Not very, because the templates are React Email components, not a provider format, and the sending sits in one place of the API route. The domain stays yours, but a new provider needs fresh verification and new DNS records. That is why I keep the sending in a single module.

On this page

  • In practice
  • What is Resend?
  • How I work with Resend
  • When it fits, and when it doesn't
  • Frequently asked questions

Related topics

  • Resend
  • Next.js
  • React
  • Payload CMS
  • TypeScript

Related services

  • Web ApplicationsModern, fast and scalable web applications using React and Next.js.

Should the app email its users?

Write which emails should go out, from which domain and who manages its DNS. I will answer what to set up before launch and whether Resend is enough.

Describe your projectSee Budzowska Fiutowski i Partnerzy