1<?php 2if(substr(PHP_OS, 0, 3) !== 'WIN') { 3 die('skip windows only test'); 4} 5 6$connection = @fsockopen('localhost', 25); 7if ($connection === false) { 8 die('skip unable to open smtp socket'); 9} 10 11$connection = @fsockopen('localhost', 143); 12if ($connection === false) { 13 die('skip unable to open imap socket'); 14} 15?> 16