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:

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.saascore.com", // Used for sending emails to clients
        official_affiliates_email: "info@partners.saascore.com", // Used for sending emails to affiliates
    },
};

Audience Management

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

Currently, we recommend creating three free Resend accounts to handle each audience separately. (Using a single account for multiple audiences requires an upgrade.)

  1. Clients Account: Use this to create the official_email and for handling the client audience.

  2. Affiliates Account: Use this to create the official_affiliates_email and for handling the affiliate audience.

  3. Blog Account: This will handle emails for the blog newsletter. No need to create a specific email address, as it will initially only store emails (audience) from your newsletters.

Environment Variables

Set up the following environment variables for each account:

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

# Affiliates
RESEND_AFFILIATES_API_KEY=
RESEND_AFFILIATES_AUDIENCE_LIST_ID=

# Blog
RESEND_BLOG_API_KEY=
RESEND_BLOG_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.

  2. Domain Verification: To verify additional accounts using the same domain, we recommend using subdomains. For example:

    • Clients account: saascore.com

    • Affiliates account: affiliates.saascore.com

  3. Account Management: This setup is designed to avoid extra charges while Resend requires account upgrades for separate audiences. If you choose to upgrade your account, you can use a single account and create separate audiences within it.

Last updated