Why React EmailIt gives you the ability to style your mails with Tailwind CSS just like in your application. Of course the config from your app is reused for your mails. It also gives you the ability to use components in your mails, so you can build a generic template and use it in all your mails.
Providers
In the@repo/email package in your repository you can find the providers folder.
There are multiple providers available:
Set from mail address
Next up, set the from mail address EMAIL_FROM environment variable. This is the mail address that will be used as the sender of all mails. Please make sure that the mail address and domain are verified in your mail provider.
Email Templates
The templates, located in the@repo/email package. You can find them in the packages/email/emails directory.
Create a mail template
To create a new mail template, simply create a new .tsx in theemails folder. This is a simple example of a mail template:
emails/my-email.tsx
Previewing Emails

email package:
Terminal