pai
    Preparing search index...

    Function mailSend

    • Send, only when the user allowed it in the environment, every recipient is allowed, and today's cap has room for all of them. The cap counts recipients, not messages. Held under a lock with the recipients recorded before sending, so parallel sends cannot all pass the cap.

      Parameters

      Returns Promise<
          {
              message_id: string
              | null;
              per_day: number;
              sent: boolean;
              sent_today: number;
          },
      >