note 67001 deleted from function.imap-open by bjori
| From: | bjori@php.net | Date: | Fri, 02 Jun 2006 06:15:18 +0000 |
| Subject: | note 67001 deleted from function.imap-open by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-112866@lists.php.net to get a copy of this message | ||
Note Submitter: youneek1 at gmail dot com
Reason: useless
----
I tried TONS of combinations and could never get it to work. I used the below script to find out
what the error was, and the below settings seem to be pretty universal for the servers I have tested
so far.
<?php
$user = "username";
$pass = "password";
$imapserver = "servername";
$econn = imap_open
("{".$imapserver.":143/imap/novalidate-cert/notls}INBOX",$user,$pass) or die
("Connection fail" .imap_last_error ());
if ($econn)
{echo "Success";}
else
{echo "Fail ";}
?>