Represents the structure of an attachment. This interface is compatible with AttachmentLike of nodemailer.

interface AttachmentLike {
    content?: string | Buffer | Readable;
    path?: string | Url;
}

Hierarchy (view full)

Properties

Properties

content?: string | Buffer | Readable

Contents of the attachment stored in a string, buffer or stream.

path?: string | Url

File path or URL (data URIs are allowed as well) if you want to read a file instead of including it (better for larger attachments).

Copyright Ⓒ 2024 SAP SE or an SAP affiliate company. All rights reserved.