Prevent sending a mail if we are in debug, instead output something in console