I need to write a PHP script that will check an email account for incoming messages and allow me to see who the sender is, the subject, the text of the email and, most importantly, extract an attached CSV file. I am NOT talking about squirrelmail or some kind of email interface, I'm talking about a small script to automate checking a mailbox for incoming messages.

Can anyone recommend an approach for this? I was reading the PHP docs on IMAP functions but I'll need this particular script to work on a shared hosting machine. Also, there weren't really any helpful script examples on that page.

Any advice would be much appreciated.

    nobody can help with this? I find it hard to believe no one has written a class to do this.

    I did find this (see attached), but haven't tested it.

      Write a Reply...