Configuring email or execute based on results