core/components/Mail.php
public function address($email, $name = null)
    {
        $this->getMailer()->addAddress($email, (empty($name)) ? $email : $name);

        return $this;
    }
public function address($email, $name = null)
    {
        $this->getMailer()->addAddress($email, (empty($name)) ? $email : $name);

        return $this;
    }
public function address ( $ email , $ name = null ) { $ this -> getMailer ( ) -> addAddress ( $ email , ( empty ( $ name ) ) ? $ email : $ name ) ; return $ this ; }
Add a single address with optional name

@param string $email The email address e.g. john@example.com
@param string $name The name for the address e.g. John Doe
@return \luya\components\Mail
Add a single address with optional name