retrieving email on cPanel using php

cPanelPeter

Technical Analyst III
Staff member
Sep 23, 2013
575
21
143
cPanel Access Level
Root Administrator
Twitter
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