retrieve email using PHP and pop3 - what is your technique?

徘徊边缘 提交于 2019-11-27 06:30:33

问题


I can see some options available:

1) Use PEAR's POP3 class --> tried it, having some weird weird issues like FF choking to death on their sample code!!!

2) Use PHPClasses (here) --> seems to be the viable option at the time, still working on it

3) Write my own or use one of the snippets available

The target is currently Gmail, but I would like this to work on my ISP mail too (not necessarily same code of course).

What do you use? Pointers to working snippets would be much appreciated.


回答1:


I use the PHPClasses version. Works fine for me - I've been working on an AJAX mail client (personal project, learning exercise really). I also found that the sample code they provided was quite good so you should be able to get something working with it.




回答2:


The native PHP IMAP functions support POP3 mailboxes, and will probably be faster than anything written purely in PHP. There are generally some useful comments and examples in the PHP manual, for example on the imap_open page.




回答3:


I've just discovered ezcomponents. Real nice to work with.



来源:https://stackoverflow.com/questions/325579/retrieve-email-using-php-and-pop3-what-is-your-technique

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