> ## Documentation Index
> Fetch the complete documentation index at: https://docs.shipthing.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Resend

> Learn how to use Resend for sending emails.

To use Resend with ShipThing

**1. Create a Resend account**

[Create a Resend account](https://resend.com/) 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:

```ts /packages/email/index.ts theme={"system"}
export * from './providers/resend';
```

**3. Sending Emails**

```tsx apps/web/app/contact/actions/contact.tsx theme={"system"}
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} />,
});
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.