Return server mail queue contents

This function retrieves the contents of the server's mail queue.

SecurityBasicAuth
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
object
get/fetch_mail_queue
Request samples
whmapi1 --output=jsonpretty \
  fetch_mail_queue
Response samples
application/json
{
  • "data": {
    • "records": [
      • {
        • "frozen": 0,
        • "msgid": "1UotX3-0002HX-Lr",
        • "recipients": [
          • "pricilla@graceland.com"
          ],
        • "sender": "elvis@graceland.com",
        • "size": 14336,
        • "time": 1371552781,
        • "user": null
        }
      ]
    },
  • "metadata": {
    • "command": "fetch_mail_queue",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}