check for error in php mail() function code example
Example: php mail if successful
$result = mail('[email protected]', 'Test Subject', $message);
if(!$result) {
echo "Error";
} else {
echo "Success";
}
$result = mail('[email protected]', 'Test Subject', $message);
if(!$result) {
echo "Error";
} else {
echo "Success";
}