numerical25
numerical25

Reputation: 10790

Creating Emails via PHP with WHM/Cpanel

I am using WHM/Cpanel to manage my sites. I am on a VPS server on Hostgator. I want to create email accounts dynamically via PHP. Does anyone know what I might need in order to do this ? Any good resources ?? Books or code they can share for me to go about doing this ?

I am only dealing with one cpanel account, not multiple accounts, so I figured i would just need the cpanels API.

Upvotes: 4

Views: 5316

Answers (1)

Darryl at NetHosted
Darryl at NetHosted

Reputation: 303

The following posts contain some detailed explanation of this:

http://forums.cpanel.net/f42/create-email-account-using-api-121741.html

Using cPanel-Matt's XMLAPI php class is the recommended way to do this which you can find here:

http://forums.cpanel.net/f42/xmlapi-php-class-111897.html

Upvotes: 2

Related Questions