Iskra API Reference
    Preparing search index...

    Interface EmailMessage

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

    Each entry is one bare address (a@x.com), or { name, address } for a display name: a string with a name, a list or a group is rejected.