You can use the Resend provider to send transactional emails to your customers using the Novu Platform with a single API to create multi-channel experiences.
Getting Started#
To use the Resend provider in the email channel, you will need to create a Resend account and add your API key to the Resend integration on the Novu platform.
Generating an API Key#
To generate a new API key in Resend, you can follow these steps:
- Sign up or Log in to your Resend account.
- Click on the API Keys link in the left sidebar, and then click the “Create API Key” button on the top right part of the page.
- On the API Keys page, click the Create API Key button.
- Give the API key a name and click on the Add button.
- Copy the generated API Key.
Authenticating your Sender Identity#
Before you can send emails on a large scale, you will need to authenticate your Sender Identity.
Resend allows you to authenticate your sender identity using Domain Authentication.
Creating a Resend integration with Novu#
- Visit the Integrations page on Novu.
- Click on Add a Provider.
- Select Resend service.
- Enter your Resend API Key.
- Fill in the
From email addressfield using the authenticated email from the previous step.- For testing, you can use
onboarding@resend.devif you have not authenticated your sender identity.
- For testing, you can use
- Fill in the
Sender's name. - Click on the
Disabledbutton and mark it asActive. - Click on the Update button.
- You should now be able to send notifications using Resend in Novu.
React Email with Code Steps#
Resend maintains React Email. Use Novu Code Steps to author templates in React Email and deliver them through your Resend integration - no dashboard HTML editor required.
- Connect Resend in Novu (steps below).
- Add an email step and switch it to Custom Code.
- Publish a handler linked to your React Email template:
The CLI scaffolds a handler that calls render() from @react-email/components and returns HTML for Novu to send via Resend. See Code Steps for the more details.
Next Steps#
Publish React Email templates from your codebase and send them through Resend.
Learn how to configure bcc, cc, and reply-to for your email notifications using email overrides
Learn how to send attachments with email notifications
Learn how to use different email provider integrations to be used to send emails