$conn = @imap_open("{localhost:993/imap/ssl/novalidate-cert}", $email_addr, $email_pass,"n_retries=1");
$status = @imap_status($conn, "{localhost:993/imap/ssl/novalidate-cert}", SA_ALL);
if ($status)
{
$total_emails = $status->messages;
$total_unseen = $status->unseen;
}
@imap_close($conn);
}
|