Type alias SubscribeBeforeMailSendOptions

SubscribeBeforeMailSendOptions: { priority?: number; timeout?: number }

Type declaration

  • Optional priority?: number

    Priority is an integer in the range of [-10000, 10000], and the default is 0. The larger the number, the higher the priority. If the priority are the same, they are sorted by the time of this API call. The beforeMailSend event will be triggered to all subscribed apps in order of priority, or the order in which the method was called when the priorities are the same.

  • Optional timeout?: number

    Timeout for the callback (call callbackToMail) of onBeforeMailSend event. Unit is ms, default value is 5000, 0 means no timeout.

Generated using TypeDoc