使用电子邮件处理审批
我从高层得到的一件事是能够回复电子邮件通知以批准或拒绝它。此行为类似于许多邮件列表,您点击回复以批准订阅或发送到不同的电子邮件地址以拒绝。在 Exchange 和 ASP.NET 环境中如何执行此操作?有其他人这样做的例子吗?
目前,我通过电子邮件中的链接执行此操作,但如果他们使用手机或不在办公室,他们将无法访问 Intranet 应用程序。
One thing that is coming to me from the top is the ability to respond to an email notification to approve or deny it. This behavior would be similar to many mailing lists were you hit reply to approve the subscription or send to a different email address to deny. How would I do this in an Exchange and ASP.NET environment? Are there any examples of someone else doing this?
I currently do this via a link in the email, but if they are on their phones or out of the office, they can't access the intranet application.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您必须监控传入邮箱并回复电子邮件中的关键字(主题或正文)。如果您想要执行多个操作(即批准或拒绝),最简单的方法是在电子邮件正文中创建 mailto 链接。这样,点击时,mailto 链接将在主题行中包含您的关键字(批准、拒绝等)。
You'll have to monitor the incoming mailbox and respond to keywords in the email (subject or body). If you want to perform multiple actions (ie approve or deny), the simplest way is to create mailto links in the email body. That way, the mailto links will include your keywords (approve, deny, whatever) in the subject line when clicked.
大约六年前,我构建了一个这样的应用程序。基本上,我们将邮件服务器配置为在某个地址收到电子邮件时执行脚本。
因此,如果邮件服务器在
[email protected]
,然后邮件服务器执行本地程序。您可以通过向 ASP.NET 应用程序发出执行的脚本和 http 请求来将其连接到 ASP.NET。具体实施将取决于您的邮件服务器以及用于管理它的软件。
I built an application like this about six years ago. Basically, we configured the mail server to execute a script when a certain address received an email.
So, if the mail server received an email at
[email protected]
, then the mail server executes the local program. You can wire this to ASP.NET by having the executed script issue and http request to the ASP.NET application.The specific implementation is going to be dependent on your mail server and the software you use to manage it.
我知道您正在使用 Exchange,也许这个答案对您不太有帮助。我曾经使用过自定义电子邮件服务器来执行类似于您所说的操作。该实现基于此 C# 电子邮件服务器。
I know that you´re using Exchange and maybe this answer is not quite helpful for you. I used a custom email server once for doing something similar to what you´re saying. The implementation was based on this C# email server.