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

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Matt Phelps
Forum Commoner
Posts: 82
Joined: Fri Jun 14, 2002 2:05 pm

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

Post 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??
User avatar
hob_goblin
Forum Regular
Posts: 978
Joined: Sun Apr 28, 2002 9:53 pm
Contact:

Post by hob_goblin »

Matt Phelps
Forum Commoner
Posts: 82
Joined: Fri Jun 14, 2002 2:05 pm

Post 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.
User avatar
mr_griff
Forum Commoner
Posts: 64
Joined: Tue Sep 17, 2002 11:11 am
Location: Bozeman, Montana

Post 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/
Post Reply