Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions SendMailSmtpClass.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,15 +162,16 @@ public function addFile($path){

// парсинг ответа сервера
private function _parseServer($socket, $response) {
while (@substr($responseServer, 3, 1) != ' ') {
if (!($responseServer = fgets($socket, 256))) {
return false;
}
}
if (!(substr($responseServer, 0, 3) == $response)) {
return false;
}
return true;
$responseServer = $response;
while (@substr($responseServer, 3, 1) != ' ') {
if (!($responseServer= fgets($socket, 256))) {
return false;
}
}
if (!(substr($responseServer, 0, 3) == $response)) {
return false;
}
return true;
}

// подготовка содержимого письма
Expand Down