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: "my_personal_email@gmail.com", // Used for admin dashboard login and receiving contact emails from visitors
        official_email: "official_email@nextdirectory.io", // Used for sending emails to clients
    },
};

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 directory project.

Last updated