Integrate this weekend

A simple, elegant interface so you can start sending emails in minutes. It fits right into your code with SDKs for your favorite programming languages.

1import { Resend } from 'resend';
2
3const resend = new Resend('re_xxxxxxxxx');
4
5(async function() {
6 const { data, error } = await resend.emails.send({
7 from: 'onboarding@resend.dev',
8 to: 'delivered@resend.dev',
9 subject: 'Hello World',
10 html: '<strong>it works!</strong>'
11 });
12
13 if (error) {
14 return console.log(error);
15 }
16
17 console.log(data);
18})();