Emails
Sending emails with Resend and React Email.
StarterKitPro uses Resend by default for sending various emails, including:
- Magic Links (Authentication)
- Transactional Emails
- Marketing Emails
Email Design (React Email)
Emails are built using React Email and Tailwind CSS:
- Design: Use React components and Tailwind.
- Templates: Located in
components/mails/
. - Output: Automatically converted to email-safe HTML/CSS.
Here are some useful resources from React Email:
Sending Emails
Sending custom emails is straightforward using the centralized function in lib/resend.ts
. This renders your React Email template and sends it via the configured provider (Resend by default).
React Email
React Email
Here sending the email which is design with designed with react email components which provides proer react support and tailwind.
Custom Email
Custom Email
Here sending the totaly custom email which is not using react email just using html/css.
Magic Links
The magic link authentication system also uses the configured email provider (Resend).
Provider Configuration & Switching
Configuring your domain with the email provider is crucial.
- Resend Config: See details
- SendGrid Config: See details
Quick Provider Change
Switching between Resend and SendGrid (or other providers with similar setup) can typically be done quickly by updating the relevant configuration and environment variables. For details check the related feature doc.