Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
cPanel
Support
Forums
Bugs
Home
Products
News
Support
Developer Center
cPanel Forums
cPanel Forums > General Topics > Developer Corner
User Name
User Name
Remember Me?
Log in Search
Password
Today's Posts
LinkBack
Thread Tools
ldsuva
Registered User
I have WHM access, how to create email account for the domain using API. Any inputs are most welcome Regards Lakha
06-17-2009, 10:12 AM
#2 (permalink)
Join Date: Nov 2006 Location: Houston, TX Posts: 7,145
cPanelDavidG
cPanel Sales Support
Quote:
Originally Posted by ldsuva I have WHM access, how to create email account for the domain using API. Any inputs are most welcome Regards Lakha 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: XMLAPI php class The function for creating an email account is an API1 function. The raw function call as it appears in the X3 theme is:
Code:
<cpanel Email="addpop($FORM{'email'},$FORM{'password'},$FORM{'quota'},$FORM{'doma
4
The first parameter is the portion of the email address before the @ sign (e.g. nobody, if creating nobody@example.com) The second parameter is the password for the mail account The third parameter is the disk quota in megabytes (e.g. 250) The forth parameter is the domain this email address is for (e.g. example.com if creating nobody@example.com). __________________ If you desire technical assistance from our staff, please let our technical analysts take a look at your server for you. You can do this by submitting a support ticket at http://tickets.cPanel.net/submit ---cPanel Conference 2009 October 5th, 6th, & 7th Houston, TX Unlimited Learning! http://conference.cpanel.net
7/9/2009
Page 2 of 4
06-23-2009, 02:36 AM
#3 (permalink)
Join Date: Mar 2009 Posts: 4
ldsuva
Registered User
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
06-23-2009, 09:16 AM
#4 (permalink)
Join Date: Nov 2006 Location: Houston, TX Posts: 7,145
cPanelDavidG
cPanel Sales Support
Quote:
Originally Posted by ldsuva 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 Editing a username for an email account is not possible in the cPanel interface, so there will be no API equivalent for that. For editing an email account's password, you would use:
Code:
email is the portion of the email address before @ password is the new password for the email account. quota is the email quota domain is the portion of the email address after @ __________________ If you desire technical assistance from our staff, please let our technical analysts take a look at your server for you. You can do this by submitting a support ticket at http://tickets.cPanel.net/submit ---cPanel Conference 2009 October 5th, 6th, & 7th Houston, TX Unlimited Learning! http://conference.cpanel.net
06-24-2009, 07:14 AM
#5 (permalink)
Join Date: Mar 2009 Posts: 4
ldsuva
Registered User
Hello
7/9/2009
Page 3 of 4
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
06-24-2009, 09:41 AM
#6 (permalink)
Join Date: May 2009 Posts: 32
lvt
Registered User Quote:
Originally Posted by ldsuva 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 I'm not familiar with the PHP class provided here but I guess that you will need something like :
Quote:
06-24-2009, 09:58 AM
#7 (permalink)
Join Date: Nov 2006 Location: Houston, TX Posts: 7,145
cPanelDavidG
cPanel Sales Support
Quote:
Originally Posted by ldsuva 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 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? lvt's post summed up what you need to do. If you need clarification for this even after reviewing the api1 example in the zip file containing the PHP 5
7/9/2009
Page 4 of 4
class, please let me know. __________________ If you desire technical assistance from our staff, please let our technical analysts take a look at your server for you. You can do this by submitting a support ticket at http://tickets.cPanel.net/submit ---cPanel Conference 2009 October 5th, 6th, & 7th Houston, TX Unlimited Learning! http://conference.cpanel.net
06-24-2009, 11:53 PM
#8 (permalink)
Join Date: Mar 2009 Posts: 4
ldsuva
Registered User
Hello Please find below ID: Support Request Id 445949 - API function to list email accounts Its Joshua Brown and Mary Wior replied on ticket. Thanks
not post new threads not post replies not post attachments not edit your posts
BB code is On Smilies are On [IMG] code is On HTML code is Off Trackbacks are On Pingbacks are On Refbacks are On Forum Rules
Similar Threads
Thread
create FTP, email and remove a parked domain using xml api Create email account Create account without email. Email on external server How to create an email account Create email forwards by API
Thread Starter
nhk15 ekg Wonderm00n matheus_1web TDD
Forum
Developer Corner New User Questions cPanel cPanel Backend/Scripts
Replies
5 1 8 0 0
Last Post
04-10-2009 06:32 AM 02-22-2008 08:52 AM 07-11-2006 03:27 AM 11-19-2003 04:15 AM 10-28-2003 04:42 AM
All times are GMT -5. The time now is 09:57 AM.
Powered by vBulletin Version 3.8.2 Copyright 2000 - 2009, Jelsoft Enterprises Ltd. cPanel Inc
7/9/2009