Forum Moderators: coopster

Message Too Old, No Replies

PHP guest book automatic email message retrieval

I want my guest book automatically retrieve and show the text of my email

         

chrisN

9:56 pm on May 29, 2005 (gmt 0)

10+ Year Member



Hello,

I need help with my PHP guest book program. I have a guest book and it is using a .dat file for the database. I would like to add an email feature to that program, so if I send an email (like using email feature of my cell phone), the text (no address, no subject line, etc.) of that email will be automatically placed in my guest book.

I thank you in advance.

ironik

10:03 pm on May 29, 2005 (gmt 0)

10+ Year Member



If you are using an IMAP based mailbox and your hosting server supports the PHP IMAP functions you can use them to very easily open a mailbox and retrieve the messages. You'll probably have to write some fairly strong filtration for messages to avoid your script entering spam on the guestbook.

Look up imap_open() in the PHP manual function list.

[php.net...]