@repo/email, are powered by React Email - a collection of high-quality, unstyled components for creating beautiful emails using React and TypeScript.
Sending Emails
To send an email, you can use theresend object, which is imported from the @repo/email package:
apps/web/app/contact/actions/contact.tsx
Email Templates
Theemail package is separated from the app folder for two reasons:
- We can import the templates into the
emailapp, allowing for previewing them in the UI; and - We can import both the templates and the SDK into our other apps and use them to send emails.
apps/web/app/contact/actions/contact.tsx
Previewing Emails
To preview the emails templates, simply run theemail app.