Skip to content

Commit bd80dcc

Browse files
authored
chore: update readme.md (#512)
1 parent 15b948a commit bd80dcc

File tree

1 file changed

+30
-2
lines changed

1 file changed

+30
-2
lines changed

readme.md

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
2+
![nodejs-og](https://github.com/user-attachments/assets/7bc8f7c1-1877-4ddd-89f9-4f8d9bc32ed5)
3+
4+
<p align="center">
5+
<a href="https://resend.com/docs/send-with-nodejs">Quickstart Docs</a>
6+
</p>
7+
8+
<p align="center">
9+
Framework guides
10+
</p>
11+
<p align="center">
12+
<a
13+
- <a href="https://resend.com/docs/send-with-nextjs">Next.js</a>
14+
- <a href="https://resend.com/docs/send-with-remix">Remix</a>
15+
- <a href="https://resend.com/docs/send-with-nuxt">Nuxt</a>
16+
- <a href="https://resend.com/docs/send-with-express">Express</a>
17+
- <a href="https://resend.com/docs/send-with-redwoodjs">RedwoodJS</a>
18+
- <a href="https://resend.com/docs/send-with-hono">Hono</a>
19+
- <a href="https://resend.com/docs/send-with-bun">Bun</a>
20+
- <a href="https://resend.com/docs/send-with-astro">Astro</a>
21+
</p>
22+
123
# Resend Node.js SDK
224

325
Node.js library for the Resend API.
@@ -21,11 +43,11 @@ Send email with:
2143

2244
## Setup
2345

24-
First, you need to get an API key, which is available in the [Resend Dashboard](https://resend.com).
46+
First, you need to get an API key, which is available in the [Resend Dashboard](https://resend.com/api-keys).
2547

2648
```js
2749
import { Resend } from 'resend';
28-
const resend = new Resend('re_123456789');
50+
const resend = new Resend('re_xxxx...xxxxxx');
2951
```
3052

3153
## Usage
@@ -42,6 +64,9 @@ await resend.emails.send({
4264
});
4365
```
4466

67+
> [!NOTE]
68+
> In order to send from your own domain, you will first need to verify your domain in the [Resend Dashboard](https://resend.com/domains).
69+
4570
## Send email using HTML
4671

4772
Send an email custom HTML content:
@@ -87,6 +112,9 @@ await resend.emails.send({
87112
});
88113
```
89114

115+
> [!NOTE]
116+
> If your endpoint is a JS/TS file, render the template (i.e., pass `EmailTemplate({firstName="John", product="MyApp"})` instead of the component).
117+
90118
## License
91119

92120
MIT License

0 commit comments

Comments
 (0)