Receive Email using PHP [closed]
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
开发者_StackOverflow社区 Improve this questionDoes PHP have any classes to receive email? Do you know of any good resources about this?
Try php-imap library. It's very popular and stable.
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 app that should do the trick.
I kinda explained it more on another question.
Hope that helps!
If you want to receive e-mail in 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 request which in turn let's you do all the cool stuf you would like it to do in 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.
精彩评论