Skip to content

Commit e6b89d9

Browse files
Update MailboxValidatorController.php
1 parent 6d577b6 commit e6b89d9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/Controller/MailboxValidatorController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ class MailboxValidatorController{
77

88
public function single ($email) {
99
$api_key = Configure::read('MBV_API_KEY');
10+
$source = 'cakephp';
1011
if (trim($email) != '') {
11-
$results = file_get_contents('https://api.mailboxvalidator.com/v1/validation/single?key=' . $api_key . '&email=' .$email);
12+
$results = file_get_contents('https://api.mailboxvalidator.com/v1/validation/single?key=' . $api_key . '&email=' .$email. '&source=' .$source );
1213
// Decode the return json results and return the data as an array.
1314
$data = json_decode($results,true);
1415
if (trim ($data['error_code']) == '' ) {

0 commit comments

Comments
 (0)