smtp email varification
Posted: Tue Sep 01, 2015 12:59 am
Hey guys , i am using this library here https://github.com/zytzagoo/smtp-validate-email to validate , is the email address provided really exists.
so i basically have created a index.php page with the following code:
<?php
my question is, how do i echo to the screen to see if the email address is valid or not . if i do ,
i get
on the screen.
so i basically have created a index.php page with the following code:
<?php
Code: Select all
require('smtp-validate-email.php');
$from = 'a-happy-camper@campspot.net'; // for SMTP FROM:<> command
$email = 'someone@somewhere.net';
$validator = new SMTP_Validate_Email($email, $from);
$smtp_results = $validator->validate();
var_dump($smtp_results);Code: Select all
echo $smtp_results;Code: Select all
Array