YourGameObject.GetComponent<YourScript>().enabled = true;
gameObject.GetComponent<EmailSender >().enabled = false;