
Resend Has a Free Email API That Replaces SendGrid — React Components for Email Templates
The Email Problem SendGrid's API is from 2012. Mailchimp's transactional email (Mandrill) requires a separate account. And email templates? You're writing HTML tables like it's 1999. Resend gives you a modern email API. Plus React Email — build templates with JSX components. What Resend Gives You Simple API import { Resend } from ' resend ' ; const resend = new Resend ( ' re_123456789 ' ); await resend . emails . send ({ from : ' onboarding@yourapp.com ' , to : ' user@example.com ' , subject : ' Welcome to YourApp ' , html : ' <h1>Welcome!</h1><p>Thanks for signing up.</p> ' , }); React Email Templates import { Html , Head , Body , Container , Text , Button } from ' @react-email/components ' ; export function WelcomeEmail ({ name , loginUrl }: Props ) { return ( < Html > < Head /> < Body style = { { fontFamily : ' sans-serif ' } } > < Container > < Text > Hi { name } , </ Text > < Text > Welcome to our platform! </ Text > < Button href = { loginUrl } style = { { background : ' #000 ' ,
Continue reading on Dev.to React
Opens in a new tab

