Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create an Email Account in Cpanel via PHP? [closed]

Tags:

php

email

cpanel

How do I create email accounts with PHP using the xmlapi.php library from cPanel?

Note: I need to create more than 1000 email accounts and want to know if this is possible.

Thanks.

like image 600
Mohandass Avatar asked Jun 21 '11 08:06

Mohandass


People also ask

What is default email account in cPanel?

The system creates the cPanel account default email account when your hosting provider creates your cPanel account. It uses the [email protected] format, where account is your cPanel account name and domain is your main domain. The username and password are the same as your cPanel account.


1 Answers

UPDATED

I have updated your question and based on that providing this answer.

1. I see bunch of API's for cPanel for managing the server. Though I don't find a direct API for creating a new email account, but found a script which would help you creating email account.

Please see this link:

http://www.zubrag.com/scripts/cpanel-create-email-account.php

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

like image 170
Rakesh Sankar Avatar answered Sep 21 '22 14:09

Rakesh Sankar