Skip to content

Emails

Setup

StartKit.AI uses Resend to send emails and manage mailing lists.

Sending emails

Signup for a Resend account, follow their instructions to create an account, and grab your API key.

Set the following variables in your .env file;

RESEND_API_KEY=
RESEND_SENDING_ADDRESS=

You can test your integration by sending a test email with the sendTestEmail() function in /src/helpers/emails.js.

Mailing lists

If you want to add customers to a mailing list you will also need to setup an audience in Resend and add the following to your .env:

RESEND_AUDIENCE_ID=

You can now manage your Resend audience with addUserToMailingList() and removeUserFromMailingList().