Добавляет получателя

@param string $address  адрес получателя
@param string $name     имя получателя

@return EForms_Mail

@since 1.00
@uses ezcMail::addTo()
@uses ezcMailAddress
766786
public function addTo($address, $name = null)
	{
		$this->getComposer()->addTo(new ezcMailAddress($address, $name, CHARSET));

		return $this;
	}
217803
public function addTo( $to = [ ] )
    {
        $this->to[ ] = $to;

        if ( is_array( $to ) )
        {
            $result = $this->mailer->addAddress( $to[ 'address' ], $to[ 'name' ] );
        }
        elseif ( is_string( $to ) )
        {
            $result = $this->mailer->addAddress( $to );
        }
        else
        {
            throw new MailException( 'Something went wrong with adding TO recipient' );
        }

        return $result;
    }
127147
public function addTo(string $email, string $name = null): self
	{
		$this->message->addTo($email, $name);
		$this->recipients[] = $email;
		return $this;
	}
228480
public function to($mail, $name = null)
    {
        $this->mailer->addAddress($mail, $name);
        return $this;
    }
1228264
public function setSender($address, $name = null)
    {
        if (!is_array($address) && isset($name)) {
            $address = [$address => $name];
        }

        if (!$this->setHeaderFieldModel('Sender', (array) $address)) {
            $this->getHeaders()->addMailboxHeader('Sender', (array) $address);
        }

        return $this;
    }
178301
public function addReplyTo(string $address, ?string $name = null): Message
    {
        $this->replyTo[] = [
            'address' => $address,
            'name'    => $name
        ];

        return $this;
    }
974769
public function setRecipient($address = null, $name = null)
    {
        try {
            $address = $this->idnToAscii($address);

            parent::addAddress($address, $name);

            // copying values as original class does not allow to access recipients array
            $this->_aRecipients[] = [$address, $name];
        } catch (Exception $exception) {
        }
    }
1367892
public function addFrom(string $address, ?string $name = null): Message
    {
        $this->from[] = [
            'address' => $address,
            'name'    => $name
        ];

        return $this;
    }
802335
public function addBcc(string $address, ?string $name = null): Message
    {
        $this->bcc[] = [
            'address' => $address,
            'name'    => $name
        ];

        return $this;
    }
655133
public function setFrom($address, $name = null)
	{
		$this->getComposer()->from = new ezcMailAddress($address, $name, CHARSET);

		return $this;
	}
325448
public function to($address, $name = null)
    {
        if (is_array($address)) {
            $this->addAddressArray($address, 'to');
        } else {
            $this->to[$address] = $name;
        }

        return $this;
    }
194977
public function bcc($address, $name = null, $override = false)
    {
        if ($override) {
            $this->swift->setBcc($address, $name);

            return $this;
        }

        return $this->addAddresses($address, $name, 'Bcc');
    }
920043
public function setTo($address, $name = null) : EmailInterface
    {
        $this->mailer->addAddress($address, $name);

        return $this;
    }
564110
function setReplyTo( $email, $name = false )
    {
        $this->Mail->setHeader( 'Reply-To', new ezcMailAddress( $email, $name, $this->usedCharset() ) );
        $this->ReplyTo = array( 'name' => $name,
                                'email' => $email );
    }
494021
public function addProxyAddress($address)
    {
        $addresses = $this->getProxyAddresses();

        $addresses[] = $address;

        return $this->setAttribute($this->schema->proxyAddresses(), $addresses);
    }
1025166
public function addAddress($email, $name = '')
    {
        if (empty($email)) {
            throw new MailerException('email is required for addAddress!');
        }

        $this->_mailer->addAddress($email, $name);

        return $this;
    }
198762
public function replyTo($emailAddress, $name = null)
    {
        $this->message->setReplyTo((string)$emailAddress, (string)$name);
        return $this;
    }