Create and manage reusable email templates
const response = await client.emails.send({ from: 'hello@yourdomain.com', to: 'user@example.com', templateId: 'welcome-email', variables: { name: 'John Doe', confirmationUrl: 'https://example.com/confirm' } });
<h1>Hello {{name}}!</h1> <p>Click <a href="{{confirmationUrl}}">here</a> to confirm your email.</p>
import { Button, Html } from '@react-email/components'; export default function WelcomeEmail({ name, confirmationUrl }) { return ( <Html> <h1>Hello {name}!</h1> <Button href={confirmationUrl}>Confirm Email</Button> </Html> ); }