Answers for "php mail if sent"

PHP
4

check mail php

filter_var($email, FILTER_VALIDATE_EMAIL)
Posted by: Guest on March-07-2020
0

php mail if successful

$result = mail('[email protected]', 'Test Subject', $message);
if(!$result) {   
     echo "Error";   
} else {
    echo "Success";
}
Posted by: Guest on November-26-2020

Browse Popular Code Answers by Language