# ZeptoMail (/docs/adapters/zeptomail)



<ProviderBadge adapter="zeptomail" />

```ts
import { createEmailClient } from "@opencoredev/email-sdk";
import { zeptomail } from "@opencoredev/email-sdk/zeptomail";

const email = createEmailClient({
  adapters: [zeptomail({ token: process.env.ZEPTOMAIL_TOKEN! })],
});
```

## Options [#options]

| Option    | Type           | Required | Notes                                                                         |
| --------- | -------------- | -------- | ----------------------------------------------------------------------------- |
| `token`   | `string`       | Yes      | ZeptoMail API token. The adapter adds the `Zoho-enczapikey` prefix if needed. |
| `baseUrl` | `string`       | No       | Defaults to `https://api.zeptomail.com`.                                      |
| `fetch`   | `typeof fetch` | No       | Useful for tests or custom runtimes.                                          |

ZeptoMail supports recipients, reply-to, and attachments. Unsupported fields throw before the API call.
