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

# EmailPayload

[API Reference](https://docs.modelence.com/api-reference/@modelence/smtp/type-aliases/../../../index) / [@modelence/smtp](https://docs.modelence.com/api-reference/@modelence/smtp/type-aliases/../index) / EmailPayload

> **EmailPayload** = `object` & \{ `html`: `string`; } | \{ `text`: `string`; }

Defined in: [index.ts:13](https://github.com/modelence/modelence/blob/main/packages/smtp/src/index.ts#L13)

## Type declaration

| Name | Type | Defined in |
| - | - | - |
| `attachments?` | [`EmailAttachment`](https://docs.modelence.com/api-reference/@modelence/smtp/type-aliases/EmailAttachment)\[] | [index.ts:23](https://github.com/modelence/modelence/blob/main/packages/smtp/src/index.ts#L23) |
| `bcc?` | `string` \| `string`\[] | [index.ts:20](https://github.com/modelence/modelence/blob/main/packages/smtp/src/index.ts#L20) |
| `cc?` | `string` \| `string`\[] | [index.ts:19](https://github.com/modelence/modelence/blob/main/packages/smtp/src/index.ts#L19) |
| `from` | `string` | [index.ts:14](https://github.com/modelence/modelence/blob/main/packages/smtp/src/index.ts#L14) |
| `headers?` | `Record`\<`string`, `string`> | [index.ts:22](https://github.com/modelence/modelence/blob/main/packages/smtp/src/index.ts#L22) |
| `html?` | `string` | [index.ts:17](https://github.com/modelence/modelence/blob/main/packages/smtp/src/index.ts#L17) |
| `replyTo?` | `string` \| `string`\[] | [index.ts:21](https://github.com/modelence/modelence/blob/main/packages/smtp/src/index.ts#L21) |
| `subject` | `string` | [index.ts:16](https://github.com/modelence/modelence/blob/main/packages/smtp/src/index.ts#L16) |
| `text?` | `string` | [index.ts:18](https://github.com/modelence/modelence/blob/main/packages/smtp/src/index.ts#L18) |
| `to` | `string` \| `string`\[] | [index.ts:15](https://github.com/modelence/modelence/blob/main/packages/smtp/src/index.ts#L15) |


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