Page 1 of 1

Okay I can send email, now how do I retrieve it?

Posted: Fri Oct 04, 2002 2:06 pm
by Matt Phelps
I'd like to code a webbased email program with which I can send and recieve email.

Sending seems to be the easy bit, thanks to the mail() function but how about retrieving the mail? If someone sends me an email and I have a pop3 account on a server (hosted, not mine) and I have the server address and the pop3 account and password - how do I get php to retrieve the email. Once I have the data I'd want to store it in a mySQL database, but that should be the easy bit?!?

I've searched the php manual but I honestly can't find a reference to 'get mail'. Can anyone point me in the right direction??

Posted: Fri Oct 04, 2002 2:47 pm
by hob_goblin

Posted: Fri Oct 04, 2002 2:50 pm
by Matt Phelps
Oookay....

Fatal error: Call to undefined function: imap_open()

That what I get when I try a simple retrieval. Does this mean my host isn't configured to allow me to do this? Is there anyway to find out? My phpinfo doesn't seem to mention IMAP at all.

Posted: Fri Oct 04, 2002 5:01 pm
by mr_griff
Sounds like your php installation doesn't have imap support compiled in. Once you correct that problem, you should take a look at the IMP webmail system on horde.org. It's the coolest, easiest one to use that I have found.

http://www.horde.org/