Is there any module or possible ways to strip the file name and error line number from the error message ?
Example :
Sending Mail Failed : SMTP Server not set at check_mail.pl line 6
I need the result only "Sending Mail Failed : SMTP Server not set".