To use Resend with SuperStarter

1

Create a Resend account

Create a Resend account and grab your API key.

2

Add environment variables

Add the RESEND_TOKEN environment variables to your .env.local file and your deployment environment:

Then, make sure to activate Resend:

/packages/email/index.ts
export * from './providers/resend';
3

Sending Emails

apps/web/app/contact/actions/contact.tsx
import { resend } from '@repo/email';
import { ContactTemplate } from '@repo/email/emails/contact';

await resend.emails.send({
    from: 'sender@acme.com',
    to: 'recipient@acme.com',
    subject: 'The email subject',
    react: <ContactTemplate name={name} email={email} message={message} />,
});