If you want to code in PHP 5, I recommend using Matt's PHP 5 class as it makes it much easier to use our APIs. You can find his PHP 5 class at:I have WHM access, how to create email account for the domain using API.
Any inputs are most welcome
Regards
Lakha
<cpanel Email="addpop($FORM{'email'},$FORM{'password'},$FORM{'quota'},$FORM{'domain'})">
Editing a username for an email account is not possible in the cPanel interface, so there will be no API equivalent for that.Hello Team
From trial and forum I found command for add/delete/list email accounts but no luck with editing email username or password.
Please help me where I can see these list of function and kindly assist me what is command to chive editing email account user name or password.
1) $xmlapi->api1_query($account, "Email", "addpop", array($email_user, $email_password, $email_domain) );
2) $xmlapi->api1_query($account, "Email", "delpop", array($email_user, $email_password, $email_domain) );
3) $xmlapi->api2_query($account, "Email", "listpops","pratikplds.com" );
Please instruct me for editing now.
Thanks in advance
<cpanel Email="passwdpop(email, password, quota, domain)">
I'm not familiar with the PHP class provided here but I guess that you will need something like :Hello
I dont understand why you people not giving proper instruction.
I wrote I am using below code to get all email account ,<?php
$xmlapi->api2_query($account, "Email", "listpops","pratikplds.com" );
?>
Now please guide me how to use below code like the one above I used.
You are asking to raise ticket, they are saying refer forum, I dont understand the reason.
Please instruct me how to use below code in php, like I used above for getting email accounts.
<cpanel Email="passwdpop(email, password, quota, domain)">
Hope This time I will get answer.
Regards
<?php
$xmlapi->api1_query($account, "Email", "passwdpop", array($email, $password, $quota, $domain) );
?>
You mentioned you submitted a ticket about this and you were referred back to the forums. If this was a ticket directly with cPanel, Inc, can you provide me with your ticket ID so I can follow up with this internally?Hello
I dont understand why you people not giving proper instruction.
I wrote I am using below code to get all email account ,<?php
$xmlapi->api2_query($account, "Email", "listpops","pratikplds.com" );
?>
Now please guide me how to use below code like the one above I used.
You are asking to raise ticket, they are saying refer forum, I dont understand the reason.
Please instruct me how to use below code in php, like I used above for getting email accounts.
<cpanel Email="passwdpop(email, password, quota, domain)">
Hope This time I will get answer.
Regards
Use the XML API over port 2082 (or port 2083 if you want to use SSL) and authenticate with your cPanel username and password.Hi all,
i have cpanel username and password but not whm.
what can i do??
There may not be anything specific other than ensuring you can login using your account username and password; if you can login then you should be able to attempt to access the XML-API as was previously mentioned. It couldn't hurt to try asking the service provider for assistance connecting to their system via the XML-API; they may be able to help check logs for troubleshooting and also verify the login works.What should I ask from my provider to do this?