1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

CMail add zone per API

Discussion in 'Plesk Expand 2.3 General Discussion' started by BenjaminB, Jun 15, 2009.

  1. BenjaminB

    BenjaminB Guest

    0
     
    CDNS add zone per API

    Hello,

    I will add a zone, but it doesent work.

    $xml = '<packet version="1.3.2.0">' .
    ' <add>' .
    ' <zones>'.
    ' <zone>'.
    ' <name>xxxx.de</name>' .
    ' <zone_type><master></master></zone_type>' .
    ' <zone>'.
    ' </zones>' .
    ' </add>' .
    '</packet>';

    SimpleXMLElement Object
    (
    [@attributes] => Array
    (
    [version] => 2.3.2.17
    )

    [system_error] => SimpleXMLElement Object
    (
    Code:
     => 1102
                [text] => [XML] Cannot parse packet - invalid XML or DOM error. Error at file 'systemId', line 1, column 213: Unknown element 'zone'.
            )
    
    )
    
    I will use Expand as a DNS Service also, should i create for every Zone a Domain in Plesk too?
    
    Thanks for the help and a happy day.
     
    Last edited by a moderator: Jun 15, 2009
  2. ideasmultiples

    ideasmultiples Basic Pleskian

    25
    73%
    Joined:
    May 19, 2004
    Messages:
    83
    Likes Received:
    0
     
  3. gold

    gold Regular Pleskian

    25
    57%
    Joined:
    Jan 8, 2008
    Messages:
    307
    Likes Received:
    0
    You need to create for every Zone a Domain in Plesk panel.
     
Loading...