Forum Moderators: coopster

Message Too Old, No Replies

How to detect TRUE value from mail function?

         

toplisek

3:16 pm on Sep 28, 2023 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



an example:



if (mail($to, $subject, $message, $headers)) {
// Display CONTAINER
$CONTAINER = ' <div</div>';
}


How to detect TRUE value from such function?
Just as an example:


$response = array(
'success_container' => true,
);


and if TRUE it will be pushed container (just as an example to show intent):


<?php

if ( is_success_container()) {
echo($CONTAINER);
}
?>