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

# Plunk

> Learn how to use Plunk for sending emails.

To use Plunk with ShipThing

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

  <Step title="Add environment variables">
    Add the `PLUNK_TOKEN` environment variables to your .env.local file and your deployment environment:

    Then, make sure to activate Plunk:

    ```ts /packages/email/index.ts theme={"system"}
    export * from './providers/plunk';
    ```
  </Step>

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