retrieving email on cPanel using php

cPanelPeter

Senior Technical Analyst
Staff member
Sep 23, 2013
586
25
153
cPanel Access Level
Root Administrator
Hello,

I don't believe there is an API (yet) for retrieving email. The API documentation we have for email specifically is:
API1 and
API2

These deal with all kinds of mail functions but not retrieving email.

There are several links found by searching Google that might help lead you in the right direction however.

Reading Emails with PHP | Garrett St. John
PHP IMAP retrieve all recipients in To address - Stack Overflow
retrieve email using PHP and pop3 - what is your technique? - Stack Overflow