function CustomErr($cusno,$cuserr)
{
echo "<b>Error : </b>". "[$cusno] ".$cuserr;
error_log("<b>Error : </b>[$cusno] $cuserr",1,"someone@gmail.com");
echo "User notified by email";
die();
}
Actually i'm not getting any error , but after execution of these function i'm trying to read error message via email(in Destination parameter) but no such message is received