> For the complete documentation index, see [llms.txt](https://docs.shipped.club/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.shipped.club/features/authentication/mailchimp.md).

# MailChimp

First of all, configure MailChimp.

For this to work you only need the `MAILCHIMP_API_KEY` environment variable configured.&#x20;

[Follow this guide](/features/emails.md#create-your-api-key) to set it.

Open `src/config/auth.ts` and set

```typescript
import { emailFrom } from "@/config";
import { sendTransactionaEmail } from "@/libs/mailchimp"

/* ... */

providers: [
    EmailProvider({
      async sendVerificationRequest({identifier: email, url}) {
        await sendTransactionalEmail({
          to: email,
          from: emailFrom,
          subject: "Sign In to MyApp",
          text: `Please click here to authenticate - ${url}`,
        })
      },
    })
  ],
```
