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!

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 Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,896
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  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 Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,896
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

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