Emails

Email Setup Documentation

We use Resend service to handle emails. For more information about integration, please consult their documentation.

Email Configuration

In the config.ts file, set up your email addresses as follows:

Copy

export const config: Data = {
    // ...other config options
    emails: {
        admin_email: "example@gmail.com", // Used for admin dashboard login and receiving contact emails from visitors
        official_email: "info@demo.nextdirectory.io", // Used for sending emails to clients
    },
};

Audience Management

Our boilerplate has three main axes: Clients, Affiliates, and Blog. To avoid mixing emails, we require three separate audiences.

Environment Variables

Set up the following environment variables for your Resend account:

#-------------------EMAILS---------------------#
# Main (Clients)
RESEND_API_KEY=
RESEND_AUDIENCE_LIST_ID=

Important Notes

  1. Admin Email: The admin_email in the config file is used for signing into your admin dashboard and receiving contact emails. You can use the same email as the official_email if desired. When starting out, using your main email account (e.g., Gmail) is acceptable to avoid creating a new professional email for each new saas project.

Last updated