Integrating Resend for Transactional Email Sending

Integrating Resend for Transactional Email Sending

Development and maintenance of all types of websites:

Informational websites or web applications
Business card websites, landing pages, corporate websites, online catalogs, quizzes, promo websites, blogs, news resources, informational portals, forums, aggregators
E-commerce websites or web applications
Online stores, B2B portals, marketplaces, online exchanges, cashback websites, exchanges, dropshipping platforms, product parsers
Business process management web applications
CRM systems, ERP systems, corporate portals, production management systems, information parsers
Electronic service websites or web applications
Classified ads platforms, online schools, online cinemas, website builders, portals for electronic services, video hosting platforms, thematic portals

These are just some of the technical types of websites we work with, and each of them can have its own specific features and functionality, as well as be customized to meet the specific needs and goals of the client.

Our competencies:

Frequently Asked Questions

Latest works

  • image_web-applications_feedme_466_0.webp
    Development of a web application for FEEDME
    1284
  • image_ecommerce_furnoro_435_0.webp
    Development of an online store for the company FURNORO
    1240
  • image_crm_enviok_479_0.webp
    Development of a web application for Enviok
    982
  • image_crm_chasseurs_493_0.webp
    CRM development for Chasseurs
    1031
  • image_website-sbh_0.webp
    Website development for SBH Partners
    1104
  • image_website-_0.webp
    Website development for Red Pear
    553

Integrating Resend for Transactional Email Sending

We have encountered projects where transactional emails never reached users: SMTP servers blocked them, DKIM was not configured, and templates had to be coded in raw HTML. As a result, lead forms, confirmations, and password resets were lost — the business took a hit. Losses from undelivered emails reached 15% conversion, and customers switched to competitors. Resend solves these problems out of the box: a modern email API with native React Email support, a free tier of 3000 emails per month, and automated deliverability setup. In this article we'll show how we connect Resend in real projects and what results it yields.

Why Resend instead of SMTP or legacy services?

Manual SMTP configuration means N+1 attempts, low deliverability, spam filters. Resend offers a ready API that guarantees delivery. Unlike SendGrid and Amazon SES, Resend is simpler: no need to manually set up DKIM/SPF — everything is automatic. Plus, React Email works out of the box, speeding up template development by orders of magnitude. Our experience shows: integration time is cut in half compared to classic solutions, and revenue from restored notifications pays for itself in 1-2 months.

Criterion Resend SendGrid Amazon SES
Free limit 3000/month 100/day 62000/month
React Email Built-in No No
DKIM setup Auto Manual Manual
Webhooks Yes Yes Yes (SNS)

Resend is 2x faster to set up than classic SMTP.

How we ensure >99% deliverability We automatically verify your domain, configure SPF, DKIM and MX records. We use dedicated IP addresses and monitor reputation via webhooks. For bounces, we automatically handle and retry sending. All this guarantees emails land in the inbox, not spam.

How we integrate Resend into your application

We connect Resend, configure your domain, develop React Email templates, set up batch sending and logging. We use TypeScript and Next.js 14 with Server Actions for sending from server components.

Installation and first send

npm install resend 
import { Resend } from 'resend'; const resend = new Resend(process.env.RESEND_API_KEY); // Simple send const { data, error } = await resend.emails.send({ from: 'Acme <[email protected]>', to: ['[email protected]'], subject: 'Welcome to Acme!', html: '<h1>Hello!</h1><p>Thanks for registering.</p>', }); if (error) { console.error('Email error:', error); } 

With React Email templates

import { Resend } from 'resend'; import { render } from '@react-email/render'; import WelcomeEmail from './emails/WelcomeEmail'; const resend = new Resend(process.env.RESEND_API_KEY); export async function sendWelcomeEmail(user: { email: string; name: string }) { const html = render( <WelcomeEmail name={user.name} loginUrl="https://app.acme.com/login" /> ); await resend.emails.send({ from: 'Acme Team <[email protected]>', to: user.email, subject: 'Welcome to Acme!', html, }); } 

How does batch sending work?

Batch sending allows you to send up to 100 emails in a single HTTP request. This is critical for invoice mailings, notifications, or confirmations during peak load. Resend processes them in parallel, saving time and resources.

await resend.batch.send([ { from: '[email protected]', to: '[email protected]', subject: 'Your invoice is ready', html: invoiceHtml1, }, { from: '[email protected]', to: '[email protected]', subject: 'Your invoice is ready', html: invoiceHtml2, }, ]); 

How to configure a domain for Resend (step by step)

  1. Add your domain in the Resend Dashboard → Domains.
  2. Add DNS records: SPF (TXT), DKIM (TXT × 3), Return-Path (MX).
  3. Wait for verification (usually under 5 minutes).

After verification, you can use from: '[email protected]' instead of @resend.dev. Resend documentation states: "With proper DKIM and SPF setup, deliverability exceeds 99%."

How to avoid landing in spam?

Use a dedicated sending domain, set up a DMARC record, and monitor IP reputation through webhooks. Regularly clean inactive users. Resend automatically manages reputation, but basic list hygiene matters.

Webhooks for status tracking

Resend sends webhooks when email status changes. Below is a full Node.js handler example with Express:

app.post('/api/webhooks/resend', express.raw({ type: 'application/json' }), async (req, res) => { const signature = req.headers['resend-signature']; const event = JSON.parse(req.body); switch (event.type) { case 'email.sent': await db.emailLogs.update({ emailId: event.data.email_id, status: 'sent' }); break; case 'email.delivered': await db.emailLogs.update({ emailId: event.data.email_id, status: 'delivered' }); break; case 'email.bounced': await db.users.markEmailBounced(event.data.to[0]); break; case 'email.complained': await db.users.unsubscribe(event.data.to[0]); break; } res.status(200).end(); }); 

Common issues and solutions

  • Authorization error: wrong API key. Check the RESEND_API_KEY environment variable.
  • Emails not delivered: incorrect domain setup or landing in spam. Use webhooks for tracking and configure SPF/DKIM strictly per instructions.
  • Rate limit exceeded: the free tier is capped at 3000 emails per month. If needed, upgrade to a paid plan or use batch sending to optimize.

What the Resend integration includes

Step Duration
Audit of current email infrastructure 1 hour
Account creation and API key 15 min
Domain setup (SPF, DKIM, MX) 1 hour
Development of 2-3 React Email templates 1-2 days
Implementing API sending 1 day
Webhook setup and logging 1 day
Deliverability testing 1 day
Documentation 1 day

Timeline and pricing

Basic Resend integration with 2-3 React Email templates takes 1-2 days. Extended version with domain, webhooks, and logging takes 3-4 days. Pricing is calculated individually based on project complexity. Leave a request — we will find the optimal solution. Get a consultation on Resend integration: our engineers with over 5 years of experience will help you set up reliable email sending. We guarantee high deliverability and post-launch support.