Change CONTACTEMAIL via 'modifyacct' function?

Jason B

Member
Feb 15, 2012
10
0
51
cPanel Access Level
DataCenter Provider
Hi,

The documentation makes it look like I can view, but not change a cPanel's contact email info via the 'modifyacct' function. Is there any way to change the contact email programmatically?

Thanks,
Jason
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
13
313
Houston, TX
cPanel Access Level
Root Administrator
Hi,

The documentation makes it look like I can view, but not change a cPanel's contact email info via the 'modifyacct' function. Is there any way to change the contact email programmatically?

Thanks,
Jason
Yes, you can use the following API2 function:

ApiCustInfo < ApiDocs/Api2 < TWiki

Note, I think there's a typo in the documentation (secpmd_email seems like it should be second_email), I've alerted our documentation team of this.