Prerequisites
To get the most out of this guide, you’ll need to: Prefer watching a video? Check out our video walkthrough below.1. Install
Get the Resend Node.js SDK.2. Create an email template
Start by creating your email template oncomponents/email-template.tsx
.
components/email-template.tsx
3. Send email using React
Create an API file underpages/api/send.ts
if you’re using the Pages Router or create a route file under app/api/send/route.ts
if you’re using the App Router.
Import the React email template and send an email using the react
parameter.