Skip to main content

QEmailAttachment

@quik/communication


@quik/communication / QEmailAttachment

Interface: QEmailAttachment

Defined in: communication/src/email/definition.ts:8

An email attachment passed as inline content rather than a file path. Use this to attach dynamically generated content (e.g. a PDF buffer) without writing a temporary file to disk.

Properties

content

content: string | Buffer<ArrayBufferLike>

Defined in: communication/src/email/definition.ts:12

Content as a Buffer or a base64-encoded string.


contentType?

optional contentType?: string

Defined in: communication/src/email/definition.ts:14

MIME type of the attachment (e.g. "application/pdf").


encoding?

optional encoding?: string

Defined in: communication/src/email/definition.ts:16

Transfer encoding, defaults to "base64" for Buffer content.


filename

filename: string

Defined in: communication/src/email/definition.ts:10

File name shown to the recipient.