title: What is the simplest way to run a script when an email is received?
body: <p>I'd like to run a script, typically in PHP or MySQL since it involves changing a Mysql db table when an email arrives at my exchange server (2010).</p>
  
  <p>The server holds IIS7.</p>
  
  <p>So in short:
  Email->Exchange server->changes a table in MySQL DB</p>
  
  <p>Notes:<ul>
  <li>Not looking for a script that connects to the e-mail via POP/imap   </li>
  <li>I'm looking for a kind of trigger that occurs in the server    </li>
  <li>Webservices or Transport Agent seem complicated If you can supply an easy example I'll accept it.    </li>
  <li>If you have a Sink example that runs on Exchange 2010 please support it with careful explanation and examples/links. (step by step if you have to)   </li>
  <li>Other scripting languages accepted.</li></ul></p>