Skip to main content
zerotal

Documentation


Documentation / @zerotal/notifications / MailAttachment

Interface: MailAttachment

Defined in: notifications/src/drivers/MailDriver.ts:23

A file carried alongside the message body.

Properties

filename

filename: string

Defined in: notifications/src/drivers/MailDriver.ts:25

Name the recipient sees.


content

content: string | Uint8Array<ArrayBufferLike>

Defined in: notifications/src/drivers/MailDriver.ts:27

File bytes, or a string for text content.


contentType?

optional contentType?: string

Defined in: notifications/src/drivers/MailDriver.ts:29

MIME type. Default: application/octet-stream.


inline?

optional inline?: boolean

Defined in: notifications/src/drivers/MailDriver.ts:34

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

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