src/Smtp.php
public function addTo($email, $name = null)
    {
        Argument::i()
            ->test(1, 'string')
            ->test(2, 'string', 'null');

        $this->to[$email] = $name;
        return $this;
    }
public function addTo($email, $name = null)
    {
        Argument::i()
            ->test(1, 'string')
            ->test(2, 'string', 'null');

        $this->to[$email] = $name;
        return $this;
    }
public function addTo ( $ email , $ name = null ) { Argument :: i ( ) -> test ( 1 , 'string' ) -> test ( 2 , 'string' , 'null' ) ; $ this -> to [ $ email ] = $ name ; return $ this ; }
Adds an email to the to list

@param *string $email Email address
@param string  $name  Name of person

@return Eden\Mail\Smtp
Adds an email to the to list