Create validate emails authored by Abdelkarim's avatar Abdelkarim
# ValidateEmail
ValidateEmails is a class that allows us to obtain validation data from an email, in order to avoid bounces and, consequently, lose the reputation of our shipments from the server.
It is a Sendgrid service only available for PRO and higher plans and you also require the use of a specific API key for said service.
## Data return
```php
"result" => [
"email" => "goodmail@gmail.com",
"verdict" => "Valid",
"score" => 0.71214,
"local" => "goodmail",
"host" => "gmail.com",
"checks" => [
"domain" => [
"has_valid_address_syntax" => true,
"has_mx_or_a_record" => true,
"is_suspected_disposable_address" => false,
],
"local_part" => [
"is_suspected_role_address" => false,
],
"additional" => [
"has_known_bounces" => false,
"has_suspected_bounces" => false,
],
]
"ip_address" => "1.1.1.1",
]
```
## tests
In the tests, when performing them without mockups, not all the answers have been tested, but the basic ones.
\ No newline at end of file