public function validHost() {
		$hostalias = 'EmailSmtphost';
		$portalias = 'EmailSmtpport';
		$port = CAKE_SETTINGS_APP_SMTP_DEFAULT_PORT;
		$timeLimit = CAKE_SETTINGS_APP_SMTP_TIME_LIMIT;
		if (!isset($this->data[$this->alias][$hostalias]) ||
			empty($this->data[$this->alias][$hostalias])) {
			return true;
		}

		$result = false;
		if (isset($this->data[$this->alias][$portalias]) &&
			ctype_digit($this->data[$this->alias][$portalias])) {
			$port = $this->data[$this->alias][$portalias];
		}

		//@codingStandardsIgnoreStart
		$fp = @fsockopen($this->data[$this->alias][$hostalias], $port, $errno, $errstr, $timeLimit);
		//@codingStandardsIgnoreEnd
		if ($fp) {
			$result = true;
			fclose($fp);
		}

		return $result;
	}