src/Api/EmailValidation.php
public function validate(string $address, bool $mailboxVerification = false)
    {
        Assert::stringNotEmpty($address);

        $params = [
            'address' => $address,
            'mailbox_verification' => $mailboxVerification,
        ];

        $response = $this->httpGet('/address/private/validate', $params);

        return $this->hydrateResponse($response, ValidateResponse::class);
    }
public function validate(string $address, bool $mailboxVerification = false)
    {
        Assert::stringNotEmpty($address);

        $params = [
            'address' => $address,
            'mailbox_verification' => $mailboxVerification,
        ];

        $response = $this->httpGet('/address/private/validate', $params);

        return $this->hydrateResponse($response, ValidateResponse::class);
    }
public function validate ( string $ address , bool $ mailboxVerification = false ) { Assert :: stringNotEmpty ( $ address ) ; $ params = [ 'address' => $ address , 'mailbox_verification' => $ mailboxVerification , ] ; $ response = $ this -> httpGet ( '/address/private/validate' , $ params ) ; return $ this -> hydrateResponse ( $ response , ValidateResponse :: class ) ; }
Addresses are validated based off defined checks.

This operation is only accessible with the private API key and not subject to the daily usage limits.

@param string $address             An email address to validate. Maximum: 512 characters.
@param bool   $mailboxVerification If set to true, a mailbox verification check will be performed
against the address. The default is False.

@throws InvalidArgumentException Thrown when local validation returns an error
@throws HttpClientException      Thrown when there's an error on Client side
@throws HttpServerException      Thrown when there's an error on Server side
@throws \Exception               Thrown when we don't catch a Client or Server side Exception

@return ValidateResponse|ResponseInterface
Addresses are validated based off defined checks .