Turned off email sending if in debug mode