
Resend Has a Free Email API That Makes SendGrid Feel Like Legacy Software
SendGrid has 47 API parameters for sending one email. Resend has one clean endpoint with React components for email templates. The Simplest Email API import { Resend } from " resend " ; const resend = new Resend ( " re_123456789 " ); await resend . emails . send ({ from : " hello@yourdomain.com " , to : " user@example.com " , subject : " Welcome! " , html : " <h1>Hello World</h1> " , }); That is the entire API. One function. Done. React Email (Templates as Components) npm install @react-email/components import { Html , Head , Body , Container , Heading , Text , Button , Img } from " @react-email/components " ; export function WelcomeEmail ({ name , actionUrl }: { name : string ; actionUrl : string }) { return ( < Html > < Head /> < Body style = { { fontFamily : " sans-serif " , backgroundColor : " #f6f9fc " } } > < Container style = { { maxWidth : 600 , margin : " 0 auto " , padding : 20 } } > < Img src = "https://yourapp.com/logo.png" width = { 120 } height = { 40 } alt = "Logo" /> <
Continue reading on Dev.to React
Opens in a new tab



