[**Documentation**](../../../README)

***

[Documentation](../../../README) / [@zerotal/notifications](../README) / MailAttachment

# Interface: MailAttachment

Defined in: [notifications/src/drivers/MailDriver.ts:23](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/notifications/src/drivers/MailDriver.ts#L23)

A file carried alongside the message body.

## Properties

### filename

> **filename**: `string`

Defined in: [notifications/src/drivers/MailDriver.ts:25](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/notifications/src/drivers/MailDriver.ts#L25)

Name the recipient sees.

***

### content

> **content**: `string` \| `Uint8Array`\<`ArrayBufferLike`\>

Defined in: [notifications/src/drivers/MailDriver.ts:27](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/notifications/src/drivers/MailDriver.ts#L27)

File bytes, or a string for text content.

***

### contentType?

> `optional` **contentType?**: `string`

Defined in: [notifications/src/drivers/MailDriver.ts:29](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/notifications/src/drivers/MailDriver.ts#L29)

MIME type. Default: `application/octet-stream`.

***

### inline?

> `optional` **inline?**: `boolean`

Defined in: [notifications/src/drivers/MailDriver.ts:34](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/notifications/src/drivers/MailDriver.ts#L34)

Reference the part from the HTML body instead of listing it as a download.
Set `cid` too and use `<img src="cid:the-id">`.

***

### cid?

> `optional` **cid?**: `string`

Defined in: [notifications/src/drivers/MailDriver.ts:36](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/notifications/src/drivers/MailDriver.ts#L36)

Content-ID for an inline part, without the angle brackets.
