php if mail success 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";
}