Just wondering if anyone was successful in using PHP's imap_open and connecting to the POP3 server securely? I am able to connect to the usual 110. But when connecting at 995, I get an error. Here is a snippet of code:
Any help will be greatly appreciated! 8)
PHP:
<?php
$imapres = imap_open("{mail.domain.tld:995/pop3/ssl/novalidate-cert}", "[email protected]", "thepassword");
if (!($imapres)) {
die("Problem encountered when accessing server.");
} else {
print("Connection to server was successfully established.");
imap_close($imapres);
}
?>
Any help will be greatly appreciated! 8)