Prerequisites
Before you begin, make sure you have:- Node.js 20 or later installed
- A React or Next.js project (or create a new one)
- An email service provider (like Resend, SendGrid, or Nodemailer)
Install dependencies
Install ReactUI Email and React Email components using your preferred package manager:
The
@react-email/render package is used to convert React components into HTML that can be sent via email.Copy an email template
Browse the available templates in the source repository and copy one to your project. For example, create a welcome email:
src/emails/welcome.tsx
Render the template to HTML
Use the The
render function from @react-email/render to convert your React component to HTML:src/lib/email.ts
pretty option formats the HTML output for better readability during development.Using with popular email services
ReactUI Email works seamlessly with any email service that accepts HTML content:Resend
Modern email API with React Email support built-in
SendGrid
Reliable transactional email service
Plunk
Simple email API for developers
Nodemailer
Traditional SMTP for self-hosted solutions
Next steps
Now that you’ve sent your first email, you can:- Explore the complete Installation guide for advanced setup options
- Browse available templates to find one that fits your needs
- Learn about customizing with Tailwind CSS
- Understand React Email basics