Mailing

Resend Configuration

Resend is a cloud-based email service that provides reliable email delivery for your applications. staarter.dev includes built-in support for sending emails using Resend, allowing you to configure your Resend settings in the environment variables and start sending emails from your application.

Configuring Resend Settings

To configure Resend settings in staarter.dev, follow these steps:

Update the environment variables

  1. Open the .env.local file in the root of your project directory.
  2. Add the following environment variables to configure your Resend settings:
RESEND_API_KEY=your-api-key

Replace your-api-key with your Resend API key. Read more about how to obtain a Resend API key.

Change the email provider

In packages/mailing/providers/index.ts, you can change the export instruction to use the Resend provider:

export { send } from './resend'
Previous
SendGrid
Next
SMTP