Hi. I having problem with this class. I tried to used it here: http://allday.ph/freewifi/signin.php, this is only a test environment.
I im using this code:
include_once 'class.verifyEmail.php';
$myemail = "
[email protected]";
$vmail = new verifyEmail();
$vmail->setEmailFrom($myemail);
if ($vmail->check($email)) {
//Do Nothing!!
} else {
array_push($errors, "We can't communicate with the email you provided. Kindly give us another one.");
$error_flag = 1;
}
if ($error_flag === 1){
$_SESSION['signin_error'] = $errors;
header("location: ../signin.php");
exit();
}
I dont include isValid because i have my own email format validator, so i remove it. so when the email exist the code will do nothing and proceed with my insert code to mysql. but when i try to submit a valid email for example "
[email protected]" that is my email but still it says the error.
please help.