Can I set up a PHP script to scan all incoming emails to my inbox?-ThrowExceptions

Exception or error:

I was wondering if it’s possible to set up one of my email accounts
(I’m currently using shared web hosting with Dreamhost) to call my PHP script (as a callback with
parameters of an incoming email message: subject line, who is it
from, and the body text) for all incoming messages to that inbox?

PS. And if such is not available with that shared web hosting platform, is there an email service that may allow it?

How to solve:

imap_open() php function could help you read incoming mail, here is the documentation:

Leave a Reply

Your email address will not be published. Required fields are marked *