PDA

View Full Version : PHP IMAP connection problem



mstabile
12-10-2007, 09:00 PM
I have been using the following php function call for several weeks and now all of a sudden it is no longer working.

$mbox = imap_open ("{localhost/imap}", "email@domain.com", "password");

This is the error I am getting.

Warning: imap_open() [function.imap-open]: Couldn't open stream {localhost/imap} in /home/usr/public_html/attachmentread.class.php on line 80
can't connect: Certificate failure for localhost: self signed certificate: /C=US/ST=Unknown/L=Unknown/O=Unknown/OU=Unknown/CN=host126.hostmonster.com/emailAddress=ssl.net

Any Ideas?

r2b2
12-10-2007, 09:10 PM
Never really used it but according to the PHP manual, you could try adding /novalidate-cert to make it {localhost/imap/novalidate-cert}

It says that this is required for self signed certificates...

mstabile
12-10-2007, 09:12 PM
That was it. Thanks.