The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

can't extract contact email for domain

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

  1. santouras

    santouras Registered

    Joined:
    May 26, 2006
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    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

    /scripts2/listaccts?nohtml=1&viewall=1

    The problem is that it doesn't show all of the information that is available, it only has
    Code:
    username=domain,package,owner
    
    I also tried using the fetchcsv script

    /scripts/fetchcsv

    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?

    cheers

    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
     
    #1 santouras, Jan 1, 2008
    Last edited: Jan 2, 2008
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    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?
     
Loading...

Share This Page