收到电子邮件时运行脚本的最简单方法是什么? [英] What is the simplest way to run a script when an email is received?

查看:247
本文介绍了收到电子邮件时运行脚本的最简单方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想运行一个脚本,通常在PHP或MySQL中,因为它涉及到一个电子邮件到达我的交换服务器(2010)时更改Mysql数据库表。



服务器保存IIS7。



所以简而言之:
Email-> Exchange server->更改MySQL DB中的表



注意:


  • 不寻找通过POP / imap连接到电子邮件的脚本

  • 我是寻找在服务器中发生的一种触发器

  • Web服务或运输代理似乎很复杂如果可以提供一个简单的例子,我会接受它。

  • 如果您有一个在Exchange 2010上运行的Sink示例,请通过仔细的说明和示例/链接进行支持。 (一步一步,如果你必须)

  • 接受其他脚本语言。

解决方案

可能不完全符合您要查找的内容,但邮戳可提供允许您使用的邮件服务做这样的事情。



他们的API非常好,非常好记录的。我的理解是你可以设置webhooks,让你做你想要的。



我希望这对你有用。 b $ b

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.

解决方案

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.

这篇关于收到电子邮件时运行脚本的最简单方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆