Added check for environment and don't send email if development.