File manager - Edit - /home/autoph/public_html/connectv1/api/controllers/validate_emailv2.php
Back
<?php require '../../vendor/autoload.php'; use SMTPValidateEmail\Validator as SmtpEmailValidator; /** * Validating multiple addresses/recipients at once: * (checking multiple addresses belonging to the same server * uses a single connection) */ $emails = [ 'someone@example.org', 'someone.else@example.com', '143clarkz@gmail.com' ]; $sender = '143clarkz@gmail.com'; $validator = new SmtpEmailValidator($emails, $sender); $results = $validator->validate(); echo json_encode($results); // var_dump($results); // /** // * The `validate()` method accepts the same parameters // * as the constructor, so this is equivalent to the above: // */ // $emails = [ // 'someone@example.org', // 'someone.else@example.com' // ]; // $sender = 'mail@connect.autohub.ph'; // $validator = new SmtpEmailValidator(); // $results = $validator->validate($emails, $sender); // var_dump($results);
| ver. 1.4 |
.
| PHP 7.3.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings