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';23const resend = new Resend('re_xxxxxxxxx');45(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 });1213 if (error) {14 return console.log(error);15 }1617 console.log(data);18})();