Skip to content

Commit 6dc9dc5

Browse files
Update ValidateEmail.php
1 parent 2ba3b07 commit 6dc9dc5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ValidateEmail.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,10 @@ function ValidateDisposable($email) {
3232
if (!isset($api_key)) {
3333
$api_key = env('MBV_API_KEY');
3434
}
35+
$source = 'laravel';
3536
try {
3637
// Now we need to send the data to MBV API Key and return back the result.
37-
$results = file_get_contents('https://api.mailboxvalidator.com/v1/email/disposable?key=' . $api_key . '&email=' .$email);
38+
$results = file_get_contents('https://api.mailboxvalidator.com/v1/email/disposable?key=' . $api_key . '&email=' .$email. '&source=' .$source );
3839

3940
// Decode the return json results and return the data as an array.
4041
$data = json_decode($results,true);

0 commit comments

Comments
 (0)