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?
imap_open() php function could help you read incoming mail, here is the documentation: