HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

Error in Framework.Class.Email.php :: ServerParse

edited November 2009 in Feedback
If Send is called with "$FatalError = 0", but using our own SMTP server, then the error is still printed.

Should be:

function ServerParse($Socket, $ExpectedResponse) {
$ServerResponse = '';
while (substr($ServerResponse, 3, 1) != ' ') {
if (!($ServerResponse = fgets($Socket, 256)) && $this->FatalError) {
$this->Context->ErrorManager->AddError($this->Context, $this->Name, "ServerParse", "An error occurred while sending the email.", "Couldn't get mail server response codes.");
}
}

if (!(substr($ServerResponse, 0, 3) == $ExpectedResponse) && $this->FatalError) {
$this->Context->ErrorManager->AddError($this->Context, $this->Name, "ServerParse", "Unable to send email. The SMTP server reported the following error:", $ServerResponse);
}
}
Tagged:
Sign In or Register to comment.