Skip to content

Commit

Permalink
Merge pull request #7827 from jdarwood007/smtpError451
Browse files Browse the repository at this point in the history
  • Loading branch information
Sesquipedalian authored Aug 16, 2023
2 parents bfc48ee + 456bdb2 commit 47e7200
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sources/Subs-Post.php
Original file line number Diff line number Diff line change
Expand Up @@ -1599,8 +1599,9 @@ function server_parse($message, $socket, $code, &$response = null)
/*
* 550 - cPanel rejected sending due to DNS issues
* 450 - DNS Routing issues
* 451 - cPanel "Temporary local problem - please try later"
*/
if ($response_code < 500 && $response_code != 450)
if ($response_code < 500 && !in_array($response_code, array(450, 451)))
log_error($txt['smtp_error'] . $server_response);

return false;
Expand Down

0 comments on commit 47e7200

Please sign in to comment.