Skip to main content

Interface: MailAttachment

Email attachment definition. Compatible with nodemailer Mail.Options.

Properties

content

Optional Readonly content: string

String, Buffer or a Stream contents for the attachmentent

Defined in

packages/core/src/client.ts:418


path

Optional Readonly path: string

path to a file or an URL (data uris are allowed as well) if you want to stream the file instead of including it (better for larger attachments)

Defined in

packages/core/src/client.ts:420


filename

Optional Readonly filename: string | false

filename to be reported as the name of the attached file, use of unicode is allowed. If you do not want to use a filename, set this value as false, otherwise a filename is generated automatically

Defined in

packages/core/src/client.ts:422


contentType

Optional Readonly contentType: string

optional content type for the attachment, if not set will be derived from the filename property

Defined in

packages/core/src/client.ts:424