1<?php 2extension_loaded('imap') or die('skip imap extension not available in this build'); 3 4// Change these to make tests run successfully 5$mailbox = '{localhost/norsh}'; 6$username = 'webmaster@something.com'; 7$password = 'p4ssw0rd'; 8$options = OP_HALFOPEN; // this should be enough to verify server present 9$retries = 0; // don't retry connect on failure 10 11$mbox = @imap_open($mailbox, $username, $password, $options, $retries); 12if (!$mbox) { 13 die("skip could not connect to mailbox $mailbox"); 14} 15imap_close($mbox); 16?> 17