public function toList(array $to)
    {
        foreach ($to as $name => $to) {
            $this->to[] = $this->formatEmail($to, !is_int($name) ? $name : null);
        }

        return $this;
    }
public function toList(array $to)
    {
        foreach ($to as $name => $to) {
            $this->to[] = $this->formatEmail($to, !is_int($name) ? $name : null);
        }

        return $this;
    }
public function toList ( array $ to ) { foreach ( $ to as $ name => $ to ) { $ this -> to [ ] = $ this -> formatEmail ( $ to , ! is_int ( $ name ) ? $ name : null ) ; } return $ this ; }
Define the receiver in list

@param array $to
@return $this
Define the receiver in list