manage mailboxes via php scripts

scotto07

Registered
May 7, 2008
3
0
51
Hey everyone,
I am building a php site hosted by hostgator and i want to be able to have some of my php scripts manage the email mailboxes, like forwarding, creating/deleting mailboxes, ect. I have not been able to find ways of doing this by google searching or looking in the knowledge base. Any help would be greatly appreciated.

Thanks, Scott Tucker
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
13
313
Houston, TX
cPanel Access Level
Root Administrator
Do you have access to the WHM interface, or do you only have access to the cPanel interface? If you have access to the WHM interface, that would allow you to use our APIs to handle that for you.
 

scotto07

Registered
May 7, 2008
3
0
51
I dont think i do, my host is HostGator, is there a way i can see if i do have access to that?
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
13
313
Houston, TX
cPanel Access Level
Root Administrator
I dont think i do, my host is HostGator, is there a way i can see if i do have access to that?
Typically if you do not know if you have access to WHM, you don't. However, attempt to use your cPanel user credentials in the HTTP Authentication pop up for Example.com/whm where Example.com is your domain. If you cannot gain access to the WHM interface that way, then you probably do not have access to WHM.
 

scotto07

Registered
May 7, 2008
3
0
51
I just checked and i dont have access to the /whm page. Is there any other way to manage it?
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
13
313
Houston, TX
cPanel Access Level
Root Administrator
I just checked and i dont have access to the /whm page. Is there any other way to manage it?
Some PHP coders have created kludges to get around such limitations. Their implementations aren't great, but seem to work for most people for now. Just do an internet search, there seems to be many pre-existing scripts for this purpose.