简体   繁体   English

在php中获取不带imap扩展名的gmail电子邮件

[英]fetch gmail email without imap extensions in php

有没有一种方法可以使用php而不使用imap扩展名来获取Google电子邮件?

Weeell, you could use a POP3 client class, like this one: http://pecl.php.net/package/POP3 - but it will be a huge hassle. Weeell,您可以使用POP3客户端类,如下所示: http ://pecl.php.net/package/POP3-但这将是一个巨大的麻烦。 POP3 is a very rudimentary protocol, and IIRC you need to specifically allow it for the given GMail inbox. POP3是一个非常基本的协议,对于特定的GMail收件箱,IIRC需要专门允许它。 It is possible though, if you really can't go with IMAP. 但是,如果您真的不能使用IMAP,则有可能。

Sure 当然

PEAR's Net_IMAP Provides an implementation of the IMAP4Rev1 protocol using PEAR's Net_Socket and the optional Auth_SASL class. PEAR的Net_IMAP使用PEAR的Net_Socket和可选的Auth_SASL类提供IMAP4Rev1协议的实现。

To clarify, this is a package that implements the IMAP protocol in PHP code, instead of requiring an extension to be installed. 为了明确起见,这是一个用PHP代码实现IMAP协议的软件包,而不需要安装扩展名。 It will probably not perform as well as the C-client would, but it should be functional at least. 它的性能可能不会像C客户端那样好,但是至少应该起作用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM