Skip to content

Commit

Permalink
retry error handling (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattbr0wn authored Sep 5, 2024
1 parent 4aa4983 commit cf1b396
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mailvalidate/validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,11 @@ func handleSmtpResponses(req *EmailValidationRequest, resp *EmailValidation) {
resp.SmtpResponse.TLSRequired = true
resp.RetryValidation = true
}

if strings.Contains(resp.SmtpResponse.Description, "try again") {
resp.RetryValidation = true
resp.IsDeliverable = "unknown"
}
}
}

Expand Down

0 comments on commit cf1b396

Please sign in to comment.