Skip to main content

Track Delivery API

Comments

8 comments

  • cPanelMichael
    Hello, It looks like this thread was missed in our initial scan of incoming threads. Were you able to find an answer to this question? I believe the following cPanel API 2 function is what you were seeking: cPanel API 2 Functions - EmailTrack::search - Software Development Kit - cPanel Documentation Thank you.
    0
  • swbrains
    Hmmm... I'm not sure why this one is marked solved; maybe I marked it that way for some reason. I did try this function "EmailTrack::search" as documented in the Email API module you linked to, but it doesn't allow me to specify a user account to filter by. It's results are similar to those provided by WHM, but without the ability to filter by user account. I'd like to offer my customers the ability to see which email deliveries have failed (incoming or outgoing) along with the reasons, but I don't want them to see mail sent/received outside their account. As the function stands (if I'm correct about the lack of filtering server-side), it's not practical to return all mail delivery records for the entire server and then filter them client-side in my script for one customer.
    0
  • cPanelMichael
    I'd like to offer my customers the ability to see which email deliveries have failed (incoming or outgoing) along with the reasons, but I don't want them to see mail sent/received outside their account. As the function stands (if I'm correct about the lack of filtering server-side), it's not practical to return all mail delivery records for the entire server and then filter them client-side in my script for one customer.

    Hello, The cPanel API 2 function will only output results for the account that's running the command. For example, a user logged in via SSH as "account1" can run the following command:
    cpapi2 EmailTrack stats
    This will only output information about queued email for that specific cPanel account. Thank you.
    0
  • swbrains
    Thanks. I was able to all the function successfully under the logged account. However it returned no results, unlike the ones in cPanel UI->Track Delivery. Then I noticed the API docs say "This function displays tracking information for the messages in the account's message queue." The UI Track Delivery function seems to return email "history" (already sent/received messages) but perhaps this API call only returns what's currently in the queue (in progress)?
    0
  • cPanelMichael
    There's no UAPI or cPanel API 2 function that will provide the same functionality as the the "Track Delivery" option in cPanel. I encourage you to open a feature request if you'd like to see support for that added: Submit A Feature Request Thanks!
    0
  • swbrains
    I tried just now. It doesn't seem to show up in my Feature Requests after submitting. I probably tried 3 times so sorry if there is more than one copy. :(
    0
  • cPanelMichael
    Requests are moderated by default, so once you make the submission it can sometimes take 24-48 hours before it's approved. Thank you.
    0
  • swbrains
    Got it -- thanks!
    0

Please sign in to leave a comment.