To use Plunk with SuperStarter

1

Create a Plunk account

Create a Plunk account and grab your API key.

2

Add environment variables

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

Then, make sure to activate Plunk:

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

Sending Emails

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

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