Setu-TS
    Preparing search index...

    Interface ISmtpTransport

    Structural shape of a nodemailer transport. The plugin never hard-depends on nodemailer; inject this shape, or SmtpProvider lazily loads the package and adapts it to this facade.

    0.1.0

    interface ISmtpTransport {
        sendMail(
            mail: {
                bcc?: string;
                cc?: string;
                from: string;
                html?: string;
                subject: string;
                text?: string;
                to: string;
            },
        ): Promise<unknown>;
        verify?(): Promise<unknown>;
    }
    Index
    • Sends one message.

      Parameters

      • mail: {
            bcc?: string;
            cc?: string;
            from: string;
            html?: string;
            subject: string;
            text?: string;
            to: string;
        }

        The nodemailer message fields

      Returns Promise<unknown>

      Resolves when the transport accepts the message

    • M70c: verifies the SMTP connection. nodemailer's real transport exposes this; a minimal injected fake may omit it, in which case the provider reports unknown reachability rather than false.

      Returns Promise<unknown>

      Resolves when the connection is verified

      0.1.0