Results 1 to 1 of 1

Thread: cannot return list of emails with listpopswithdisk

  1. #1
    Registered User
    Join Date
    Aug 2012
    Posts
    1
    cPanel/WHM Access Level

    Website Owner

    Default cannot return list of emails with listpopswithdisk

    For some reason, I simply cannot get a return list of email addresses. I can get a new email to create and I veriified it in cPanel, but I am getting an empty record back when trying to list my emails.
    I am on hostmonster if that helps, and i changed the port to 2083 in xmlapi.php.

    Can anyone spot where I am messing up?

    Code:
    <?php
    include("xmlapi.php");
    $ip = 'my site ip';
    $account = 'username';
    $domain = 'mysite.com';
    $passwd = 'my password';
    
    $xmlapi = new xmlapi($ip);
    $xmlapi->password_auth($account, $passwd);
    
    $addpop_args = array(
      'domain'=>$domain,
      'email'=>'bobbyjryyy',
      'password'=>'abcd1234MN',
      'quota'=> 50);
    
    print $xmlapi->api2_query($account, "Email", "addpop", $addpop_args);
    $mylist = $xmlapi->api2_query($account, "Email", "listpopswithdisk", array('domain'=>$domain) );
    require_once "xmltoarray.php"; 
    $xmlObj    = new XmlToArray($mylist); 
    $arrayData = $xmlObj->createArray(); 
    echo "<pre>"; 
    print_r($arrayData); 
    echo "</pre>"; 
    ?>
    SOLVED ...
    I simply forgot to set my output type
    Last edited by gruant2000; 08-13-2012 at 12:57 AM.

Similar Threads

  1. <?cp Email::listpopswithdisk(... DOES NOT WORK since 11.25 STABLE
    By Gino Viroli in forum cPanel Developers
    Replies: 4
    Last Post: 02-20-2010, 02:58 PM
  2. Email::listpopswithdisk and multiple domains
    By k_shehadeh in forum cPanel Developers
    Replies: 8
    Last Post: 05-05-2009, 12:26 PM
  3. User for emails scripts return path
    By kieranmullen in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 12-23-2005, 05:37 AM
  4. Email return with various address emails
    By bdc in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 10-29-2005, 12:42 PM
  5. Need list of contact emails - but they don't appear in 'Fetch CSV' list?
    By spaceman in forum cPanel & WHM Discussions
    Replies: 3
    Last Post: 01-27-2005, 03:57 AM