Reading Mails using PHP
-
Hai Friends :) good to see you all.. :-D i am doing one webmail project using php.. for that i need to read mails from that particular email and show it in my inbox.. my question is how to read mails from Cpanel using PHP.. any help will be useful to me.. :^) thank u in advance ;P
-
Hai Friends :) good to see you all.. :-D i am doing one webmail project using php.. for that i need to read mails from that particular email and show it in my inbox.. my question is how to read mails from Cpanel using PHP.. any help will be useful to me.. :^) thank u in advance ;P
Do you know where the email actually resides? Is this a linux system or a Windows system? I know for Linux, there are several open source webmail projects, my favorite is Roundcube. If you have your mind set on actually writing it yourself, (again, assuming a Linux server), you would need to be able to parse the mbox files where postfix (I'm assuming you are using postfix) stores email at (/var/spool/mail). I've never done that, but I know you'll need to make sure your web browser (apache?) has permissions to read those files... Does that help?