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.

Problem with Query addpop: Invlid email address error

Discussion in 'cPanel Developers' started by StianSomoen, May 12, 2015.

  1. StianSomoen

    StianSomoen Registered

    Joined:
    May 12, 2015
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Norway
    cPanel Access Level:
    Website Owner
    Hi.

    We have the same problem with API 2 and AddPop using WHM JSON
    Code:
    /json-api/cpanel?cpanel_jsonapi_apiversion=2&cpanel_jsonapi_module=Email&cpanel_jsonapi_func=addpop&domain="example.com"&email="user"&password="12345luggage"&quota="500"
    
    We get the same result: Sorry, the given email address is invalid.

    Somebody have a idea of what is wrong?

    BR Stian
     
    #1 StianSomoen, May 12, 2015
    Last edited by a moderator: May 12, 2015
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    Are you entering the full email address, or just the part before the "@domain.com" suffix? Ensure you only enter the email username itself, rather than the full email address.

    Thank you.
     
  3. StianSomoen

    StianSomoen Registered

    Joined:
    May 12, 2015
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Norway
    cPanel Access Level:
    Website Owner
    Hi.

    We've tried both. Same error.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    It's important to only use the email account username and to not include the "@domain.com" suffix for the email parameter. Also, ensure you are not using quotations around the parameters, and that you are entering the URL from cPanel (since you are using cPanel API 2).

    Thank you.
     
Loading...

Share This Page