Type alias SendFn

SendFn: ((to, body, format?) => Promise<void>)

Type declaration

    • (to, body, format?): Promise<void>
    • Send an email to the specified addresses.

      Parameters

      • to: string[]
      • body: string
      • Optional format: "plain" | "html"
        Optional

      Returns Promise<void>

      Throws

      If error occurs while sending the email.

Generated using TypeDoc