Skip to content

Commit ec0ae4b

Browse files
committed
Added email validation
1 parent 30e788f commit ec0ae4b

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/Actions/Email.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,24 @@ public function Status($messageID)
216216
));
217217
}
218218

219+
/**
220+
* Verify single email address
221+
*
222+
* @param string $email Email address to verify
223+
* @param bool $updateStatus Update contact's status be changed automatically based on the validation result
224+
* @param bool $uploadContacts Create contact if it does not exist
225+
*
226+
* @return EmailValidation
227+
*/
228+
public function Verify($email, $updateStatus = false, $uploadContacts = false)
229+
{
230+
return $this->request('email/verify', array(
231+
'email' => $email,
232+
'updateStatus' => $updateStatus,
233+
'uploadContacts' => $uploadContacts
234+
));
235+
}
236+
219237
/**
220238
* View email
221239
*

0 commit comments

Comments
 (0)