Currently, if the email sending fails because an environment variable is not defined, it causes a crash in the console.