src/Expose/Notify/Email.php
public function setToAddress($emailAddress)
    {
        if (filter_var($emailAddress, FILTER_VALIDATE_EMAIL) !== $emailAddress) {
            throw new \InvalidArgumentException('Invalid email address: '.$emailAddress);
        }
        $this->toAddress = $emailAddress;
    }
public function setToAddress($emailAddress)
    {
        if (filter_var($emailAddress, FILTER_VALIDATE_EMAIL) !== $emailAddress) {
            throw new \InvalidArgumentException('Invalid email address: '.$emailAddress);
        }
        $this->toAddress = $emailAddress;
    }
public function setToAddress ( $ emailAddress ) { if ( filter_var ( $ emailAddress , FILTER_VALIDATE_EMAIL ) !== $ emailAddress ) { throw new \ InvalidArgumentException ( 'Invalid email address: ' . $ emailAddress ) ; } $ this -> toAddress = $ emailAddress ; }
Set the "To" address for the notification

@param string $emailAddress Email address
Set the To address for the notification