使用服务器应用程序处理电子邮件
恐怕这是一个非常普遍的问题,但不幸的是,我的问题正是如何深入了解这个特定问题的“细节”。 让我更具体一点:
我想创建一个“电子邮件侦听器”应用程序 - 将在我的服务器中运行的应用程序,以便用户可以将电子邮件发送到特定地址,并且该应用程序将获取电子邮件并用它的内容做一些事情。 换句话说,我想使用普通电子邮件作为用户输入的方法。
你可能知道《记住牛奶》。 它有一个功能,您可以通过电子邮件将任务发送到特定地址,并将其添加到您的任务列表中。 我想知道这是如何在“幕后”完成的。
对于答案,一般概念和文章都可以,但您显然可以指向特定于技术的资源,因为它们可以进行“逆向工程”,以便提取概念。 提前致谢!
I'm afraid this is a very generic question, but unfortunately my question is exactly how to get down to the 'specifics' on this particular issue. Let me be more specific:
I want to create an "email listener" application - something that would run in my server, so that users could send email to a particular address and this application would fetch the email and do something with its contents. In other words, I want to use common e-mail as a method of user input.
You probably know Remember The Milk. It has a feature where you can e-mail tasks to a particular address and it would be added to your task list. I want to know how this is done 'under the hood'.
For answers, general concepts and articles are fine, but you can obviously point to technology-specific resources, as they can be 'reverse-engineered' so the concepts are extracted. Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
谷歌搜索“处理传入电子邮件”实际上会返回相当多的相关结果,例如以下(PHP 示例):
http://www.evolt.org/incoming_mail_and_php
Googling for "processing incoming email" actually returns a fair number of relevant results, such as the following (a PHP example):
http://www.evolt.org/incoming_mail_and_php
您可以在任何邮件列表管理器或类似应用程序中找到执行此操作的代码。 您还可以查看 SMTP 服务器本身的内部。 我建议您看一下 GNU Mailman,它是一个邮件列表管理器。
You can find code that does this inside any mailing list manager or similar application. You could also look inside an SMTP server itself. I recommend you take a look at GNU Mailman, which is a mailing list manager.