-
-
Save davidsalazar/e05d2194de1f1d743dfa to your computer and use it in GitHub Desktop.
PHP: stupid imap issue with icloud.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<pre> | |
<?php | |
error_reporting(E_ALL); | |
// Icloud IMAP info http://support.apple.com/kb/ht4864?viewlocale=de_de | |
$mbox = imap_open("{imap.mail.me.com:993/imap/ssl}Inbox", "foobar@me.com", "mypassword"); | |
if (!$mbox) | |
{ | |
print_r(imap_errors()); | |
exit; | |
} | |
var_dump(imap_mailboxmsginfo($mbox)); | |
imap_close($mbox); | |
?> | |
</pre> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment