edgeport - v1.0.3
    Preparing search index...

    Interface Mail

    A message to send.

    Provide text, html, both (multipart/alternative), or a fully pre-rendered raw payload. Recipient lists from to, cc, and bcc are all added to the SMTP envelope; bcc is intentionally never written into the message headers.

    1.0.0

    interface Mail {
        attachments?: {
            content: Uint8Array;
            contentType?: string;
            filename: string;
        }[];
        bcc?: string[];
        cc?: string[];
        from: string;
        headers?: Record<string, string>;
        html?: string;
        raw?: Uint8Array<ArrayBufferLike>;
        subject: string;
        text?: string;
        to: string | string[];
    }
    Index
    attachments?: { content: Uint8Array; contentType?: string; filename: string }[]

    File attachments. When present the message is built as multipart/mixed with the text/html body as the first part and each file base64-encoded after it.

    bcc?: string[]

    Blind carbon-copy recipients (added to envelope only, never to headers).

    cc?: string[]

    Carbon-copy recipients (added to headers and envelope).

    from: string

    Envelope and header From address.

    headers?: Record<string, string>

    Extra headers appended verbatim (keep values ASCII).

    html?: string

    HTML body.

    raw?: Uint8Array<ArrayBufferLike>

    A complete, pre-rendered RFC 5322 message; bypasses the MIME builder when set.

    subject: string

    Subject line.

    text?: string

    Plain-text body.

    to: string | string[]

    Primary recipient(s).