@mxraven/mail - v0.2.0
    Preparing search index...

    Class SMTPError

    An SMTP reply that rejected a submission.

    It is thrown when the server refuses a command, for example when the sender domain is not authorized or a recipient is rejected. Inspect SMTPError.code or SMTPError.enhancedCode to make a delivery decision; the message is intended for humans and is not stable.

    Hierarchy

    • Error
      • SMTPError
    Index
    • Parameters

      • options: { code: number; enhancedCode?: string; message: string }

        The reply code, optional enhanced code, and reply text.

      Returns SMTPError

    code: number

    The three-digit SMTP reply code.

    enhancedCode?: string

    The RFC 3463 enhanced status code, when the server supplied one.

    • get permanent(): boolean

      Reports whether the failure is permanent (5xx). Retrying is unlikely to succeed.

      Returns boolean

    • get transient(): boolean

      Reports whether the failure is transient (4xx). The message may be retried later.

      Returns boolean