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 unique email recipients

AI-generated

Summary

Return the count of unique email recipients per sender for a specified cPanel user within a given time range.

Inputs

  • User (required) — The system user's username to query the unique recipient counts for.
  • Start Time (required) — The UNIX timestamp marking the start of the time range for this query.
  • End Time (required) — The UNIX timestamp marking the end of the time range for this query.

Output shape

an object containing counts of unique email recipients grouped by sender for the specified user and time range

The response includes the unique recipient counts per sender for the given user between the provided start and end times. If API errors occur, error handling follows WHM API conventions.

Examples

Example 1: Retrieve unique recipient counts for user 'exampleuser' between two UNIX timestamps

Set 'User' to 'exampleuser', 'Start Time' to the start UNIX timestamp, and 'End Time' to the end UNIX timestamp

Links

Discussion