/**
  * Switch between local and live site(s) automatically by domain
  * or manually by Configure::read('Environment.current').
  */
 public function __construct()
 {
     $this->default = array_merge($this->_defaults, $this->default);
     $this->default = array_merge($this->default, Environments::getEnvironmentEmailConfig());
     if (!isset($this->test)) {
         $this->test = $this->default;
     }
     if (!empty($this->test['merge'])) {
         $this->test = array_merge($this->default, $this->test);
         unset($this->test['merge']);
     }
 }