Need a custom feature? We can help!

Email Setup

Overview

StartupFast relies on Resend to easily send emails from your application.

Configuration

  • Create a new free account on Resend
  • Add your domain to Resend by clicking on the "Add domain" from the "Domains" section.
  • You will need to verify the DNS verification steps.
  • After you have verified your DNS create an API key from the "Create API Key" section, click "Add"
  • Copy the newly created Api key credentials and paste them in your .env.local file
1# Resend email service credentials (get these from https://resend.com/docs/api-reference/introduction)
2RESEND_API_KEY=
  • update the NEXT_PUBLIC_OWNER_EMAIL in your .env.local with your own sending email

NOTE Use a subdomain like mail.yourdomain.com as best practice

Send emails

StartupFast comes with a handy function to send emails, simply use the sendEmail promise function located in the /lib/mail/mailConfig.ts file, for example:

1await sendEmail(
2  "recipient@example.com",
3  "John Doe",
4  "Welcome to our platform",
5  "Thanks for joining us."
6);