Skip to content

Commit

Permalink
retry validation (#37)
Browse files Browse the repository at this point in the history
* retry validation

* correct
  • Loading branch information
alexopenline authored Aug 22, 2024
1 parent 815a448 commit 2bc1f87
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mailvalidate/validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,11 +251,12 @@ func handleSmtpResponses(resp EmailValidation) EmailValidation {
resp.SmtpSuccess = true
resp.ErrorCode = ""
resp.Description = ""
}
if resp.ErrorCode == "5.2.1" || resp.ErrorCode == "5.7.1" || resp.ErrorCode == "5.1.1" || resp.ErrorCode == "5.1.6" || resp.ErrorCode == "5.1.0" || resp.ErrorCode == "5.4.1" {
} else if resp.ErrorCode == "5.2.1" || resp.ErrorCode == "5.7.1" || resp.ErrorCode == "5.1.1" || resp.ErrorCode == "5.1.6" || resp.ErrorCode == "5.1.0" || resp.ErrorCode == "5.4.1" {
resp.SmtpSuccess = true
resp.ErrorCode = ""
resp.Description = ""
} else if resp.ErrorCode == "5.7.511" {
resp.RetryValidation = true
}
case "554":
if resp.ErrorCode == "5.7.1" {
Expand Down

0 comments on commit 2bc1f87

Please sign in to comment.