Update framework/validators/CEmailValidator.php

If fsockopen error "Connection refused" (error code: 61) is reached, yii hangs with uncatched 500 error code.

Output html code:
<h1>PHP Error [2]</h1>
<p>fsockopen() [<a href='function.fsockopen'>function.fsockopen</a>]: unable to connect to mail.somedomain.com:25 (Connection refused)</p>