PDA

Bekijk de volledige versie : Problem with imap_open and ssl



gabbano
04-12-2009, 14:01
I'm having trouble accessing my gmail account through the mail handler in PHP. I looked at the code, and I'm getting hung up on PHP's imap_open() function.

I'm trying to do the following


$mbox = imap_open("{imap.gmail.com:993/imap/ssl/novalidate-cert}", "xxxxx@gmail.com", "xxxxx") or die("Failed with error: ".imap_last_error());

And get the following error


Can't open mailbox {imap.gmail.com:993/imap/ssl/novalidate-cert}INBOX: invalid remote specification )


PHP configuration: http://www.bacuro.com/mblog/info.php
Hardware: ASUS WL500W
Firmware: Olegs
Webserver: lighttpd, eaccelerator, php

Someone managed to get imap_open work on olegs?
All help is appreciated.

gabbano
06-12-2009, 18:24
No one tried to read from mailbox with PHP on a Asus/Olegs modified router?

avberk
07-12-2009, 22:41
Try installing openssl

gabbano
08-12-2009, 17:15
Openssl is already installed,

OpenSSL support enabled
OpenSSL Version OpenSSL 0.9.7m 23 Feb 2007