- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
我正在尝试从 Gmail 中检索邮件并收到以下错误:
Can't open mailbox {imap.gmail.com:993/imap/ssl/novalidate-cert}INBOX: invalid remote specification
我的服务器安装了 OpenSSL 和 IMAP,以下是来自 phpinfo() 的 openssl 和 imap 信息;
openssl
OpenSSL support enabled
OpenSSL Library Version OpenSSL 0.9.7l 28 Sep 2006
OpenSSL Header Version
imap
IMAP c-Client Version 2007e
Kerberos Support enabled
我现在很迷茫,请大家帮忙!
最佳答案
我也遇到过类似的问题。我可以根据个人经验告诉您,虽然您可能安装了 IMAP 和 OpenSSL,但您可能需要重新编译 php install "--with-imap-ssl[=DIR]."我想做同样的事情并收到同样的错误。我还安装了相同的 OpenSSL 和 IMAP 版本。我已经重新编译了 php,这是我的配置:
./configure --prefix=/usr/local/apache2/php --with-imap=/usr/local/imap-2007f/ --with-curl=/usr/local/curl/ --enable-sockets --with-imap-ssl=/usr/local/ssl --with-openssl --with-apxs2=/usr/local/apache2/bin/apxs --with-kerberos --without-iconv
当然,您不需要使用相同的配置,因为它是根据我的需要定制的。
如果你不熟悉编译 php,你可以在这里找到源代码:
http://www.php.net/downloads.php
假设您使用的是 UNIX,这里有一个关于如何编译 php 和 apache 的基本教程。它还包括如何使用 curl 编译它们,您可以使用 curl 的所有说明并将它们分别替换为 ssl 和 imap,它应该可以工作。 http://thermo.sdsu.edu/testhome/phpinstall.html
关于PHP imap_open() : invalid remote specification when trying connect to GMAIL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6727276/
我正在为我工作的公司开发一个管理面板,并且想知道一些事情。我想增加员工的经验。我希望他们能够通过输入登录凭据连接到他们的电子邮件,然后在管理面板中阅读电子邮件。我需要帮助的是: 如果我建立 ima
您好,我正在尝试通过 PHP 页面上的 IMAP(启用 IMAP 并访问不太安全的应用程序)从 Gmail 帐户检索电子邮件,但是当我尝试使用 imap_open 连接到我的帐户时,一切都崩溃了。这是
我在使用 imap_open 时遇到一些问题。这是我收到的错误: Message: imap_open(): Couldn't open stream {imap-mail.outlook.com:9
我在 PHP 中使用 imap_open 但消息正文显示如下: v\\:* {behavior:url(#default#VML);} o\\:* {behavior:url(#default
我有以下代码: print "foo"; imap_open("{localhost:143/imap/notls}", "myname", "mypass"); print "bar"; 脚本死了。
我正在使用以下函数来检索电子邮件正文,同时使用 PHP 的 imap_open功能。 它只是由 $email_body = getBody($email_number, $inbox); 调用 它工作
我正在尝试为我的 FatCow 电子邮件帐户使用 imap_open()。这是我的代码: $mbox = imap_open("{imap.fatcow.com:143}", "account@dom
我正在尝试使用 imap 访问我的 gmail 收件箱。我已经应用了这里和谷歌中几乎所有可能的解决方案。但我面临着同样的问题。 下面是我的代码: $hostname = "{imap.gmail.c
我正在尝试使用 imap_open() 连接并获取我的主机电子邮件地址的消息,但它抛出错误。 $server = '{mail.booksnearby.in:143/imap/ssl/novalida
我的 IMAP 邮件连接有问题吗?因为这至少需要 40 秒: 可以,但是太慢了。如您所见 - 一个基本的打开和关闭。好吧,40 秒可能是可以接受的,但这中间没有任何操作!我尝试连接到 gmail I
我已将 PHP 脚本移至另一台服务器,但现在无法登录 IMAP (TLS) 邮箱: TLS/SSL failure for mail.servername.de: SSL negotiation fa
我正在尝试通过 imap_open 访问 gmail 帐户邮件。 这是我的代码: $mbox = imap_open ("{imap.gmail.com:993/imap/ssl}", "gama.*
我正在尝试通过 imap_open 连接到 POP3 服务器 imap_open('{mail.domain.com:995/pop3/tls}INBOX', 'user@domain.com
我正在使用 PHP 5.3.5 我正在使用 $this->marubox=@imap_open($this->server,$this->username,$this->password); @ 符号
当我们尝试连接到 imap.gmail.com 时,我们已经开始遇到 imap_open 函数的问题,它返回: Can not authenticate to IMAP server: [AUTHEN
Notice: Unknown: Connection failed to mail.domain.com,143: Connection timed out (errflg=2) in Unknow
要获取 gmail 邮件,我使用以下代码。它在本地工作正常,但我在服务器中遇到错误,例如: 警告:imap_open():无法在线打开 C:\xampp\htdocs\riticoglive\emai
我正在尝试使用 PHP Imap 连接到 Office 365,但它无法连接到 Office 365。对于 gmail 和其他电子邮件主机,一切正常,但在 Office 365 上,我得到无法验证(我
可能不是一个很有帮助的问题,但我无法想象这个问题没有明确的答案。我刚刚通过一些关于 imap_open() 连接问题的已经回答的问题发现,当连接到 SSL 服务器时,该函数很可能会返回错误。所以我只是
当我尝试使用 imap_open 时,出现以下错误: Warning: imap_open() [function.imap-open]: Couldn't open stream {mail.dom
我是一名优秀的程序员,十分优秀!