added JSON.stringigication of error of send mail