You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<Tip>Resend was built by the same team that created React Email, which makes this our recommendation to send emails.</Tip>
9
10
10
-
## 1. Install dependencies
11
+
###1. Install dependencies
11
12
12
13
Get the [@react-email/components](https://www.npmjs.com/package/@react-email/components) package and the [Resend Node.js SDK](https://www.npmjs.com/package/resend).
Start by building your email template in a `.jsx` or `.tsx` file.
33
34
@@ -48,7 +49,7 @@ export function Email(props) {
48
49
exportdefaultEmail;
49
50
```
50
51
51
-
## 3. Send email
52
+
###3. Send email
52
53
53
54
<Info>When integrating with other services, you need to convert your React template into HTML before sending. Resend takes care of that for you.</Info>
54
55
@@ -68,6 +69,37 @@ await resend.emails.send({
68
69
});
69
70
```
70
71
72
+
## Set up Templates with Resend
73
+
74
+
[Resend Templates](https://resend.com/docs/dashboard/templates/introduction) are a great way to collaborate on emails with your team, even if they're not technical. Upload a React Email Template to Resend and your entire team can collaborate in real-time in the visual editor.
75
+
76
+
Here's how to get started.
77
+
78
+
### 1. Add your Resend API Key
79
+
80
+
First, sign up for a [free Resend account](https://resend.com/signup).
81
+
82
+
Next, set up the Resend integration using the React Email CLI:
83
+
84
+
```bash
85
+
npx react-email@latest resend setup
86
+
```
87
+
88
+
This will prompt you to enter your Resend API Key. To get one, navigate to [API Keys](https://resend.com/api-keys) in your Resend dashboard, click **Create API key**, and ensure that the API Key is scoped to **Full Access**.
89
+
90
+
Paste the API Key into the terminal and press enter.
91
+
92
+
### 2. Upload a Template to Resend
93
+
94
+
Run React Email and visit the **Resend** tab of the toolbar, located at the bottom of the window.
95
+
96
+
Choose **Upload** or **Bulk Upload** to import your Template to Resend.
0 commit comments