cPanel WHM icon

cPanel WHM

Full cPanel WHM API — all 622 operations across Accounts, DNS, Mail, SSL, Backups, Databases and more

Actions262

Mail → Return cPanel account email tracking statistics

AI-generated

Summary

Retrieve email tracking statistics for a specific cPanel user account or for all accounts on the server, filtered optionally by delivery type, date range, and data fields.

Inputs

  • User — The cPanel username to query. Omitting this retrieves statistics for all server accounts.
  • Deliverytype — Filter results by the type of mail delivery (remote, remote-or-faildefer, or local). Defaults to all types if not set.
  • Starttime — Unix timestamp marking the start of the search window. Alias: startdate.
  • Endtime — Unix timestamp marking the end of the search window. Alias: enddate. Defaults to current time.
  • Nosize — Flag to exclude the TOTALSIZE parameter from the response: 1 to exclude, 0 to include (default 0).
  • Nosuccess — Flag to exclude the SUCCESSCOUNT parameter from the response: 1 to exclude, 0 to include (default 0).

Output shape

a JSON object representing the email tracking statistics as provided by the cPanel WHM API

The response includes aggregated email tracking data such as success counts and total sizes, optionally filtered by the specified parameters. If no user is specified, statistics cover all accounts on the server.

Links

Discussion