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

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

Hierarchy (view full)



content?: string | Readable | Buffer

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.