@hatang/sdk
    Preparing search index...

    Interface CreateEmailOptions

    interface CreateEmailOptions {
        attachments?: Attachment[];
        bcc?: string | string[];
        cc?: string | string[];
        from?: string;
        headers?: Record<string, string>;
        html?: string;
        react?: unknown;
        reply_to?: string | string[];
        scheduled_at?: string;
        subject?: string;
        tags?: Tag[];
        template?: {
            id: string;
            variables?: Record<string, string | number | boolean | null>;
        };
        text?: string;
        to: string
        | string[];
    }
    Index
    attachments?: Attachment[]
    bcc?: string | string[]
    cc?: string | string[]
    from?: string

    Optional when template sets one.

    headers?: Record<string, string>
    html?: string
    react?: unknown

    A React element (e.g. from @react-email/components). Rendered to html and, if text is absent, plain text before sending.

    reply_to?: string | string[]
    scheduled_at?: string
    subject?: string

    Optional when template sets one.

    tags?: Tag[]
    template?: {
        id: string;
        variables?: Record<string, string | number | boolean | null>;
    }

    Send a published template instead of html/text/react: { id: "tpl_…" | "alias", variables: { ORDER: "DH12" } }.

    text?: string
    to: string | string[]