Enabled logging and sending the log via email