Demo
General
Email

Overview

Learn how to configure and send emails.

Emails are a crucial part of any web application. For example sending an email confirmation, reset password link, welcome email and many more.

Providers

In the packages/email/provider folder you can find the configured provider. There are multiple providers available:

Basic Settings

Regardless of what provider you are choosing, there are some basic settings you need to set up.

Sender Address

We need a sender email (EMAIL_FROM) which is the address used to send outgoing emails. This is sometimes referred to as the mailer address.

Update the apps/dashboard/.env file:

apps/dashboard/.env
EMAIL_FROM=noreply@mailer.yourdomain.com

If you want to configure a name in your sender, set EMAIL_FROM in this format:

apps/dashboard/.env
EMAIL_FROM='John <noreply@mailer.yourdomain.com>'

Feedback Inbox

To receive in-app feedback, we need to set up an inbox.

Update the apps/dashboard/.env file:

apps/dashboard/.env
EMAIL_FEEDBACK_INBOX=support@yourdomain.com

Templates

The starter kit uses React Email to create email templates using .tsx files.

Example

Example email

Implemented templates

  1. Verify Email Address
  2. Welcome
  3. Password Reset
  4. Invitation
  5. Revoked Invitation
  6. Connected Account Security Alert
  7. Confirm Email Address Change
  8. Feedback

Preview templates

Run following command:

Terminal
pnpm --filter email preview