Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Email valdation not correct the first request #13

Open
mulder2222 opened this issue Jun 1, 2021 · 0 comments
Open

Email valdation not correct the first request #13

mulder2222 opened this issue Jun 1, 2021 · 0 comments

Comments

@mulder2222
Copy link

mulder2222 commented Jun 1, 2021

The validation isn't correct the first time we make a request.

This are two responses from the getMailgunValidation method on the same email address (i have removed the email address from the response):

As you can see in the first response it says is_valid is true and in the second one it says is_valid is false. The strange thing is that the message in both reaon fields say that the email address is invalid which make me think the is_valid field should be false in both cases.

First one:
{#3568
+"address":
+"did_you_mean": null
+"is_disposable_address": false
+"is_role_address": false
+"is_valid": true
+"mailbox_verification": "false"
+"parts": {#3566
+"display_name": null
+"domain": ""
+"local_part": "
"
}
+"reason": """
5.1.1 The email account that you tried to reach does not exist. Please try\n
5.1.1 double-checking the recipient's email address for typos or\n
5.1.1 unnecessary spaces. Learn more at\n
5.1.1 https://support.google.com/mail/?p=NoSuchUser j6si547867qka.207 - gsmtp
"""
}

Second one:
{#3568
+"address":
+"did_you_mean": null
+"is_disposable_address": false
+"is_role_address": false
+"is_valid": false
+"mailbox_verification": "false"
+"parts": {#3566
+"display_name": null
+"domain": ""
+"local_part": "
"
}
+"reason": "mailbox_does_not_exist"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant