Forum Moderators: coopster

Message Too Old, No Replies

PHP, Poll Inbox and Insert to DB

         

HoboTraveler

9:57 am on Feb 14, 2006 (gmt 0)

10+ Year Member



Hi,

Here's the scenario: I send an email to my host, eg: test@foo.com (this address will be specified in the BCC field). A PHP script then polls the inbox (through POP, every x minutes), grabs the email content and inserts it in the database under the email address which is specified in the TO or SUBJECT field.

Any ideas as to how to create a script that will poll the inbox and insert to the DB? Is there a free script that you could recommend?

Thanks!

jatar_k

4:55 pm on Feb 14, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



take a look at [procmail.org...]

that is what we used to do it