How to read mail using PHP?

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
David Spector
Forum Newbie
Posts: 1
Joined: Thu Jan 20, 2005 5:35 pm

How to read mail using PHP?

Post 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?
rehfeld
Forum Regular
Posts: 741
Joined: Mon Oct 18, 2004 8:14 pm

Post 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
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

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