I was wondering if I can assign $e->getMessage() to a vaiable like so:
$errmsg = $e->getMessage();
I'm trying to mail() it to myself whenever an exception is caught from a try catch block and don't wanna screw up the mail body...
I was wondering if I can assign $e->getMessage() to a vaiable like so:
$errmsg = $e->getMessage();
I'm trying to mail() it to myself whenever an exception is caught from a try catch block and don't wanna screw up the mail body...