使用 PHP 接收电子邮件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4709418/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Receive Email using PHP
提问by
Does PHP have any classes to receive email? Do you know of any good resources about this?
PHP 是否有任何类可以接收电子邮件?你知道关于这方面的任何好的资源吗?
回答by Capitao
I had this question too and I wanted to get emails in real time so I worked out my own solution with google app engine. I basically made a small dedicated google app engine app to receive and POST emails to my main site.
我也有这个问题,我想实时收到电子邮件,所以我用谷歌应用引擎制定了自己的解决方案。我基本上做了一个小的专用谷歌应用引擎应用程序来接收和发布电子邮件到我的主站点。
You can check out Emailization(a little weekend project I did to do it for you), or you this small GAE appthat should do the trick.
您可以查看电子邮件化(我为您做的一个周末小项目),或者您可以使用这个小型 GAE 应用程序来解决这个问题。
I kinda explained it more on another question.
我有点解释了另一个问题。
Hope that helps!
希望有帮助!
回答by Alfred
If you want to receive e-mailin real-time(COOL?but have to use .appspot domain. You could off course also forward it to the .appspot domain) I would advise you to have a look at google app engine which is free to use(generous quota). You could forward the email it your webserver using asynchronous requestwhich in turn let's you do all the cool stuf you would like it to do in PHP.
如果您想实时接收电子邮件(很酷?但必须使用 .appspot 域。您当然也可以将其转发到 .appspot 域)我建议您看看谷歌应用引擎免费使用(慷慨的配额)。您可以使用异步请求将电子邮件转发到您的网络服务器,这反过来让您可以在 PHP 中完成所有您希望它做的很酷的事情。
Python is pretty easy to learn especially after watching this video from Brett Slatkin explaining how to "Developing and deploying an application on Google App Engine" and the snippets in the google app engine documentation should get you started in no time.
Python 非常容易学习,尤其是在观看了 Brett Slatkin 解释如何“在 Google App Engine 上开发和部署应用程序”的视频以及Google App Engine文档中的片段后,您应该可以立即开始学习。