how to send verification email in php code example
Example: email verification in php
$email_a = '[email protected]';
$email_b = 'bogus';
if (filter_var($email_a, FILTER_VALIDATE_EMAIL)) {
//OK
echo "L'adresse email '$email_a' est considérée comme valide.";
}
if (filter_var($email_b, FILTER_VALIDATE_EMAIL)) {
//OK
echo "L'adresse email '$email_b' est considérée comme valide.";
}
else {
// NOT OK
echo "L'adresse email '$email_b' est considérée comme invalide.";
}
?>