fputs($smtpConnection, ".\r\n"); // end the DATA part
$tmp = fgets($smtpConnection, 1024);
- $num = errorCheck($tmp, $smtpConnection, verbose);
+ $num = errorCheck($tmp, $smtpConnection, true);
if ($num != 250) {
$tmp = nl2br(htmlspecialchars($tmp));
displayPageHeader($color, 'None');
}
- function errorCheck($line, $smtpConnection) {
+ function errorCheck($line, $smtpConnection, $verbose = false) {
global $color;
include '../functions/page_header.php';
$msg = $message . "<br>\nServer replied: $lines";
plain_error_message($msg, $color);
}
- if ($verbose == "") return $status;
+ if (! $verbose) return $status;
return $err_num;
}