Access CPanel Webmail using PHP
I have a domain and CPanel account with a host from which I can create email accounts.
I want to write a PHP script to connect to any of the created email accounts provided the username and password and view all the emails sent to this email inbox.
If this is possible I would like to have a guide in cr开发者_如何学Ceating this kind of script.
You want to use POP3 or IMAP protocols that doesn't have anything to do with cPanel. Otherwise for cPanel account functions you would want to use their API at http://docs.cpanel.net/twiki/bin/view/AllDocumentation/AutomationIntegration/XmlApi#Account functions.
I agree with Darren 100% there is no need to use Cpanel API to connect to the email,the email is still email and will work with conventional POP3 or IMAP protocols as mentioned above.
精彩评论