akramalsaidi9

Member
Apr 30, 2023
10
0
1
UK
cPanel Access Level
Root Administrator
Hi All

My question now is there any API to retrieve all emails form my email from cPanel by php api beause i need to replay to each email like chat ?
 
Last edited by a moderator:

akramalsaidi9

Member
Apr 30, 2023
10
0
1
UK
cPanel Access Level
Root Administrator
Hey there! I don't have any tools that would perform such an action at this time. You would likely need to create a custom tool to perform that work. I'm sorry I don't have a better option for you at this time.
Perfect but how can i retrieve all email from cpanel by PHP API please ? also how can i include this path in public_html ?
require_once "/usr/local/cpanel/php/cpanel.php";
 

ffeingol

Well-Known Member
PartnerNOC
Nov 9, 2001
856
367
363
cPanel Access Level
DataCenter Provider
If you just want to automatically read/reply to email via PHP you don't need any cPanel API. cPanel email just uses standard POP/IMAP to read and SMTP to send. Any PHP class libraries that handle those protocols would work.
 
  • Like
Reactions: cPRex

akramalsaidi9

Member
Apr 30, 2023
10
0
1
UK
cPanel Access Level
Root Administrator
If you just want to automatically read/reply to email via PHP you don't need any cPanel API. cPanel email just uses standard POP/IMAP to read and SMTP to send. Any PHP class libraries that handle those protocols would work.
we do not need to send from gmail , but we need to send and replay by our dashboard if there any api can you tel me about it
thanks .
 

akramalsaidi9

Member
Apr 30, 2023
10
0
1
UK
cPanel Access Level
Root Administrator
As @ffeingol mentioned, there isn't an API to retrieve email as there are other tools for that work.
I,ve issue whan i import repo from gitlab

/usr/local/cpanel/3rdparty/bin/git” reported error code “128” when it ended: [email protected]: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
15,220
2,420
363
cPanel Access Level
Root Administrator
The Email Reader application isn't part of cPanel, so I can't say for sure what would be wrong with that. It looks like the application is expecting to see an IMAP configuration, but it is receiving something else, so checking the settings in the application would be the best first step.