Private/Polyfony/Mail.php
private function configureEnvironmentSpecifics() {
		// if we are in production we set the actual recipients
        if(Config::isProd()) {
            // set the main recipients
            foreach($this->recipients['to'] as $mail => $name) {
                // add to the mailer
                $this->mailer->addAddress($mail, $name);
            }
            // set the carbon copy recipients
            foreach($this->recipients['cc'] as $mail => $name) {
                // add to the mailer
                $this->mailer->addCC($mail, $name);
            }
            // set the hidden recipients
            foreach($this->recipients['bcc'] as $mail => $name) {
                // add to the mailer
                $this->mailer->addBCC($mail, $name);
            }
        }
        // if we are in the development enviroment
        else {
            // add the bypass address only
            $this->mailer->addAddress(Config::get('mail', 'bypass_mail'));
        }
	}
private function configureEnvironmentSpecifics() {
		// if we are in production we set the actual recipients
        if(Config::isProd()) {
            // set the main recipients
            foreach($this->recipients['to'] as $mail => $name) {
                // add to the mailer
                $this->mailer->addAddress($mail, $name);
            }
            // set the carbon copy recipients
            foreach($this->recipients['cc'] as $mail => $name) {
                // add to the mailer
                $this->mailer->addCC($mail, $name);
            }
            // set the hidden recipients
            foreach($this->recipients['bcc'] as $mail => $name) {
                // add to the mailer
                $this->mailer->addBCC($mail, $name);
            }
        }
        // if we are in the development enviroment
        else {
            // add the bypass address only
            $this->mailer->addAddress(Config::get('mail', 'bypass_mail'));
        }
	}
private function configureEnvironmentSpecifics ( ) { // if we are in production we set the actual recipients if ( Config :: isProd ( ) ) { // set the main recipients foreach ( $ this -> recipients [ 'to' ] as $ mail => $ name ) { // add to the mailer $ this -> mailer -> addAddress ( $ mail , $ name ) ; } // set the carbon copy recipients foreach ( $ this -> recipients [ 'cc' ] as $ mail => $ name ) { // add to the mailer $ this -> mailer -> addCC ( $ mail , $ name ) ; } // set the hidden recipients foreach ( $ this -> recipients [ 'bcc' ] as $ mail => $ name ) { // add to the mailer $ this -> mailer -> addBCC ( $ mail , $ name ) ; } } // if we are in the development enviroment else { // add the bypass address only $ this -> mailer -> addAddress ( Config :: get ( 'mail' , 'bypass_mail' ) ) ; } }
this applies options that are only used in development, or only in production
this applies options that are only used in development or only in production