program/lib/Net/SMTP.php | ●●●●● patch | view | raw | blame | history |
program/lib/Net/SMTP.php
@@ -226,9 +226,10 @@ { $this->_debug("Send: $data"); if (PEAR::isError($error = $this->_socket->write($data))) { return PEAR::raiseError('Failed to write to socket: ' . $error->getMessage()); $error = $this->_socket->write($data); if ($error === false || PEAR::isError($error)) { $msg = ($error) ? $error->getMessage() : "unknown error"; return PEAR::raiseError("Failed to write to socket: $msg"); } return true;