public function setTo($newTo, $newToName = '')
    {
        if (is_array($newTo)) {
            $this->to  = $newTo;
        } else {
            $this->to = array();
            if (empty($newToName)) {
                $this->to[] = $newTo;
            } else {
                $this->to[$newToName] = $newTo;
            }
        }
    }
public function setTo($newTo, $newToName = '')
    {
        if (is_array($newTo)) {
            $this->to  = $newTo;
        } else {
            $this->to = array();
            if (empty($newToName)) {
                $this->to[] = $newTo;
            } else {
                $this->to[$newToName] = $newTo;
            }
        }
    }
public function setTo ( $ newTo , $ newToName = '' ) { if ( is_array ( $ newTo ) ) { $ this -> to = $ newTo ; } else { $ this -> to = array ( ) ; if ( empty ( $ newToName ) ) { $ this -> to [ ] = $ newTo ; } else { $ this -> to [ $ newToName ] = $ newTo ; } } }
set the To field, overwriting earlier settings completely
@param [type] $to [description]
set the To field overwriting earlier settings completely