Skip to content

Instantly share code, notes, and snippets.

@davidsalazar
Created March 18, 2013 04:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidsalazar/e05d2194de1f1d743dfa to your computer and use it in GitHub Desktop.
Save davidsalazar/e05d2194de1f1d743dfa to your computer and use it in GitHub Desktop.
PHP: stupid imap issue with icloud.
<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