/** * @access private * @param resource $link * @param string $command * @param CLog $log * @return bool */ function ExecuteCommand(&$link, $command, &$log, &$out, $isLog = true) { $command = str_replace("\n", "\r\n", str_replace("\r", '', $command)); if ($isLog) { $log->WriteLine('[SMTP] >>: ' . $command); } CSmtp::resetTimeOut(); @fputs($link, $command . CRLF); return CSmtp::IsSuccess($link, $log, $out); }
/** * @access private * @param resource $link * @param string $command * @param CLog $log * @return bool */ function ExecuteCommand(&$link, $command, &$log) { $log->WriteLine('SMTP >>: ' . $command); @fputs($link, $command . CRLF); return CSmtp::IsSuccess($link, $log); }