当我的服务器收到电子邮件时,我将如何运行PHP脚本

I am trying to build a website that would receive emails at addresses like bob@domainame.com I would like to run a php script every single time the server receives an email. How would I do that?

thanks in advance!! =)

Use procmail, and execute the command-line PHP if a mail arrives or download the page with curl or wget.

Make a script that checks if there are new mails and then run the script you need. The script that checks for new mails should be run by cron.