Guest User

Untitled

a guest
Apr 25th, 2018
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.34 KB | None | 0 0
  1. <?php
  2. $MBox = array(
  3.     // (email, pass, host)
  4.     array('boite1@admin-serv.net', 'pass1', 'test'),
  5.     array('boite2@admin-serv.net', 'pass2', 'localhost'),
  6.     );
  7. foreach ($MBox as $m) {
  8.     $mbox = imap_open('{' . $m[2] . ':143}INBOX', $m[0], $m[1]);
  9.     $result = imap_search($mbox, 'UNSEEN');
  10.     echo $m[0] . ' - ' . count($result) . '<br />';
  11. }
  12. ?>
Add Comment
Please, Sign In to add comment