IMAP SSL not working
Posted: 04. February 2010 21:33
I want to create a webmail service, just for learning. But I can't seem to connect to Mercury using IMAP
This is the code I'm using:
It only works without the '/ssl/novalidate-cert' part
This is the code I'm using:
- Code: Select all
<?php
$user = "user"; //Also tested with "user@localhost"
$pass = "pass";
$server = "{localhost:143/imap/ssl/novalidate-cert}";
if ( $conn = imap_open( $server , $user , $pass ) ) print 'Connected';
?>
It only works without the '/ssl/novalidate-cert' part