Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

can't extract contact email for domain

Discussion in 'E-mail Discussion' started by santouras, Jan 1, 2008.

  1. santouras

    santouras Registered

    May 26, 2006
    Likes Received:
    Trophy Points:
    Hi all,

    I'm connecting into WHM and am trying to pull down a list of all accounts on our server. The URL that I'm getting the info from is


    The problem is that it doesn't show all of the information that is available, it only has
    I also tried using the fetchcsv script


    which seems to export a whole lot more info, including setup date, the server its on, etc etc, but it still doesn't have the contact email. I could do a regex on the contents of "/scripts2/listaccts" but I don't really want to do that. Is there another script I can hit to see these contact emails?


    as an addendum to this request, is there a way of extracting the secondary email that can be added in cpanel? I've had a look through WHM and I can't see reference to it, it appears to only be available in CPanel
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #1 santouras, Jan 1, 2008
    Last edited: Jan 2, 2008
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Nov 29, 2006
    Likes Received:
    Trophy Points:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    You may wish to use the XML-API for this :)2086/xml-api/listaccts) as it is the preferred method for retrieving this data. Additionally, as it is an API, it is unlikely to change significantly without notice (unlike /scripts via WHM).

    However, I will note that the API does not list the secondary contact email either (only the primary if it is set). Perhaps you may wish to submit an official feature request for the API to include this information?

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice