Answer the question
In order to leave comments, you need to log in
How to implement receiving mail using api cPanel?
It was required to implement a simple mail service. Create/delete mail accounts. Sending and receiving letters.
I figured out the creation, deletion and sending of mail. Used the cPanel API.
We connect the class github.com/CpanelInc/xmlapi-php
$xmlapi = new xmlapi(IP, ROOT_USER, ROOT_PASSWORD);<br/>
$result = $xmlapi->api2_query(ACCOUNT, "Email", "addpop", array('domain'=>DOMAIN, 'email'=>'testemail', 'password'=>'testpassword', 'quota'=>20) );<br/>
$result = $xmlapi->api2_query(ACCOUNT, "Email", "delpop", array('domain'=>DOMAIN, 'email'=>'testemail') );<br/>
Answer the question
In order to leave comments, you need to log in
I assume that this is not implemented through cPanel. No wonder they use third-party solutions to display mail.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question