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 creating this kind of script.