?
email.stats
Counts, rates, and a timeseries of your outbound email over a window.
email.stats(options?) → EmailStats
Counts, rates (bounce, complaint, delivered), and a bucketed timeseries of your app’s outbound email over a window. accepted is the honest denominator behind the rates; below about fifty accepted, show raw counts rather than percentages.
Parameters
options
EmailWindowOptions & { buckets? }
Time window and bucket count; defaults to the last 24 hours.
Call from a method
const { counts, rates, accepted } = await email.stats({ buckets: 24 });