> ## 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

<Steps>
  <Step title="Create a Resend account">
    [Create a Resend account](https://resend.com/) and grab your API key.
  </Step>

  <Step title="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';
    ```
  </Step>

  <Step title="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} />,
    });
    ```
  </Step>
</Steps>
