We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03f6a25 commit e5e7c33Copy full SHA for e5e7c33
src/MailgunValidator.php
@@ -31,7 +31,7 @@ private function queryMailgun($email)
31
$curl = curl_init();
32
33
curl_setopt_array($curl, array(
34
- CURLOPT_URL => self::API_ENDPOINT . "?api_key=" . $this->apiKey . "&address=" . urlencode($email),
+ CURLOPT_URL => self::API_ENDPOINT . "?api_key=" . $this->apiKey . "&address=" . urlencode($email) . '&mailbox_verification=true',
35
CURLOPT_RETURNTRANSFER => true,
36
CURLOPT_MAXREDIRS => 0,
37
CURLOPT_TIMEOUT => 30,
@@ -58,7 +58,7 @@ private function queryMailgun($email)
58
public function validate($email)
59
{
60
$ret = $this->queryMailgun($email);
61
- return $ret->is_valid;
+ return $ret->is_valid === true && $ret->mailbox_verification !== false;
62
}
63
64
/**
0 commit comments