Page 1 of 1

How to read mail using PHP?

Posted: Thu Jan 20, 2005 5:52 pm
by David Spector
I'm thinking of writing a mailing list system :) . Sending mail is easy; I understand email headers and mail(). However, I can't figure out how to receive email.

I'm using a hosting company (shared Linux/Apache), so I don't have any access to the system directories that contain server email messages. Nor can I rebuild Apache or edit Apache or PHP config files.

A solution should work on PHP Version 4.3.10 and hopefully also on PHP Version 4.3.5.

I love PHP, so I'm hoping this can be done. Can I do this, and if so, how?

Posted: Thu Jan 20, 2005 8:24 pm
by rehfeld
your gonna have a real tough time doing that on a shared server w/ the limitations you mentioned.

but you could use php to read mail from your inbox etc

http://www.php.net/imap

Posted: Fri Jan 21, 2005 3:10 am
by patrikG
you can ask your hosting company to customise your server settings according to what you need, but they should have at least something like sendmail set up.

For some background reading, http://www.evolt.org/article/Incoming_M ... /18/27914/ is quite useful.