Page 1 of 1

IMAP SSL not working

PostPosted: 04. February 2010 21:33
by gabrielkfl
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:
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