1

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.

2

2 Answers 2

0

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.

2
  • How can I connect to the email using the POP3 protocol using the PHP? I want to provide the username and password in a from (I can do it) ... Then I will send the username and password to a PHP page that will fetch the emails and display it in a table view
    – sikas
    Commented Oct 26, 2010 at 18:49
  • 1
    Check this out a little Google searching got me this cool class: phpclasses.org/package/…
    – Darren
    Commented Oct 26, 2010 at 19:59
0

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.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.