What is the simplest way to run a script when an email is received?

ぐ巨炮叔叔 提交于 2019-12-07 08:08:56

问题


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).

The server holds IIS7.

So in short: Email->Exchange server->changes a table in MySQL DB

Notes:

  • Not looking for a script that connects to the e-mail via POP/imap
  • I'm looking for a kind of trigger that occurs in the server
  • Webservices or Transport Agent seem complicated If you can supply an easy example I'll accept it.
  • 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)
  • Other scripting languages accepted.

回答1:


Possibly not exactly what you are looking for but Postmark offer an incoming mail service that allows you to do this kind of thing.

Their API is pretty good and very well documented. My understanding is you can set up webhooks that will allow you to do what you're looking for.

I hope this is some use to you.



来源:https://stackoverflow.com/questions/17861126/what-is-the-simplest-way-to-run-a-script-when-an-email-is-received

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!