SendGrid to Resend

Migrating from
SendGrid to Resend

Introduction

If you're considering migrating from SendGrid to Resend, you're in the right place.

This guide will help you understand the key differences between the two services and provide you with the necessary steps to make the transition as smooth as possible.

Jump ahead

History

SendGrid and Resend are both email delivery services, but they have different histories and focuses.

Key differences

  • SendGrid was founded in 2009. In 2019, Twilio acquired SendGrid.
  • Resend was founded in 2023. Resend has a focus on providing a modern developer experience.

Concepts

Both SendGrid and Resend provide user-friendly dashboards for managing your email sending.

Sender Authentication

In SendGrid you need to access the Sender Authentication page to verify your domain. SendGrid then allows you to add a Sender Identity by confirming an individual email address or authenticating a domain via DNS.

With Resend, domains are verified on the Domains page.

Resend Domains page

Both SendGrid and Resend offer similar authentication features.

NameSendGridResend
DKIMDKIM enforcedDKIM enforced
SPFSPF enforcedSPF enforced
DMARCDMARC recommendedDMARC recommended

Activity Feed

When you send email through SendGrid, sent email is visible on the Activity page.

When you send email with Resend, emails are visible on the Emails page.

Resend Emails page

Dashboard

SendGrid shows sending statistics on the Dashboard page.

In Resend, statistics are shown on the Metrics page.

Resend Metrics page

Official SDKs

Both SendGrid and Resend provide official SDKs for various programming languages, making it easy to integrate into your application.

Key differences

  • SendGrid does not have an official Rust Library.
  • Resend does not have an official SDK for C# (see docs).

Send email via API

Both SendGrid and Resend provide a REST API and SDKs for sending emails programmatically.

Key differences

Mail Merge

  • SendGrid supports mail merge and templates for personalizations (see docs).
  • Resend supports mail merge features when used with React Email (see docs).

Rate limiting

  • SendGrid throws an error when rate limit is exceeded, but doesn't provide more details (see docs).
  • Resend has response headers describing your current rate limit following every request in conformance with the IETF standard (see docs).

Logging

  • SendGrid's API only returns an HTTP response. There are no logs of API requests.
  • Resend stores a history of API request logs, allowing for easy debugging of API responses and error codes (see docs).

SendGrid

const sgMail = require('@sendgrid/mail');
sgMail.setApiKey(process.env.SENDGRID_API_KEY);
const msg = {
to: 'receiver@example.com',
from: 'sender@example.com',
subject: 'hello world',
html: '<p>it works!</p>',
};
sgMail.send(msg)';

Resend

import { Resend } from 'resend';
const resend = new Resend('re_123456789');
await resend.emails.send({
from: 'Acme <onboarding@resend.dev>',
to: ['delivered@resend.dev'],
subject: 'hello world',
html: '<p>it works!</p>',
});

Send email via SMTP

Both SendGrid and Resend support sending emails via SMTP.

SMTP stands for Simple Mail Transfer Protocol. It is a text-based protocol in which one server communicates with another to send an email.

Key differences

Configurations

  • SendGrid does not support port 2465 (see docs).
  • SendGrid supports adding customizations via the X-SMTPAPI header (see docs).
ConfigurationSendGridResend
Host`smtp.sendgrid.net``smtp.resend.com`
Port25, 465, 587, or 252525, 465, 587, 2465, or 2587
UsernameThe `apikey` stringThe '`resend`' string
PasswordSendGrid API KeyResend API key
AuthenticationPlain text (unencrypted), SSL, or TLSSMTPS or STARTTLS

Webhooks

Both SendGrid and Resend provide webhooks to notify your application of email events.

Key differences

  • SendGrid has support for oAuth via webhooks (see docs).
  • Resend does not have support for inbound emails yet (see docs).
  • Resend has logs of webhook requests, allowing you to see the status of your webhook responses (see docs).

Security & Privacy

SendGrid and Resend have robust and similar security features.

NameSendGridResend
AuthenticationEmail/Password, GoogleEmail/Password, Google, GitHub
Single Sign-OnSSO availableSSO available
Multi-Factor AuthMFA availableMFA available
GDPRGDPR compliantGDPR compliant
SOC 2SOC 2 compliantSOC 2 compliant

Additional Features

Outside of core email sending, Resend offers additional features that SendGrid does not have that may be helpful for you.

Deliverability Insights

Improve your chances of landing in the inbox instead of the spam folder with detailed recommendations on each email sent.

Deliverability Insights

Improve email deliverability by identifying issues and applying best practices.

resend.com/blog/deliverability-insights

Multi-Region

Improve your email deliverability speed by using a region nearest to your users.

Faster Email Delivery with Multi-Region

Faster deliverability with reduced latency.

resend.com/blog/multi-region

Pricing

SendGrid and Resend offer competitive pricing based on the number of emails sent.

Key differences

  • SendGrid limits the number of team members on the essentials plan to 1 user.
  • SendGrid does not offer SSO on the essentials plan (below $89.95).
EmailsSendGridResend
3,000$0$0
50,000$19.95$20
100,000$34.95$35
200,000$249$160
500,000$499$350
1,000,000$799$650
1,500,000$799$825
2,500,000$1,099$1,050

Conclusion

Ready to migrate to Resend? Press S to get started. If there's anything else we can help with, contact our team, and we'll answer any questions you have.

Get in touch