Reading Email via IMAP in PHP

坚强是说给别人听的谎言 提交于 2019-12-21 06:27:27

问题


I need a recommendation for a PHP library that is capable of reading email via the IMAP protocol. I cannot use the standard PHP: IMAP library because that requires recompiling PHP for the target web server and I don't have access root access to the web server.


回答1:


There is a PEAR package that implements the IMAP protocol: Net_IMAP




回答2:


If I were you, I would download Squirrelmail and look at its source code.




回答3:


I don't know any implementation of IMAP for PHP without using PHPs functions. Maybe you want to use Perl for this: http://search.cpan.org/~conteb/IMAP-Client-0.13/lib/IMAP/Client.pm

Or use a CLI Client when you're on a linux server: http://delog.wordpress.com/2011/05/10/access-imap-server-from-the-command-line-using-openssl/




回答4:


Take a look at the Context.IO PHP Library: https://github.com/contextio/PHP-ContextIO

Context.IO makes your IMAP store available via a REST interface. Really easy to use and the price is right.



来源:https://stackoverflow.com/questions/1569202/reading-email-via-imap-in-php

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!