Appends one more recipient to the list.

@param Email $email

@return $this
345609
public function addTo(Email $email)
    {
        $this->to[] = $email;
        $this->message->addTo($email->email, $email->name);

        return $this;
    }
697990
public function bcc($emails)
    {
        if (is_array($emails)) {
            $this->bcc = $emails;
        } else {
            $this->bcc = (array) $emails;
        }

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

        return $this;
    }
799642
public function setSender($email)
    {
        $mail = new Email($email);
        $parts = $mail->parse();

        $this->fromUser = $parts[0];
        $this->fromDomain = $parts[1];
    }
109909
public function setTo($to)
    {
        if ($to instanceof Email) {
            $to = [$to];
        }

        foreach ($to as $email) {
            if (!$email instanceof Email) {
                throw new MailerException('Email must be an instance of \Webiny\Component\Mailer\Email.');
            }
            $this->addTo($email);
        }

        return $this;
    }
598645
public static function createFromFriendlyEmail($email): Normal
    {
        $recipient = new self;

        list($displayName, $epostAddress) = self::splitFriendlyEmail($email);

        if (strlen($displayName)) {
            $recipient->setDisplayName($displayName);
        }

        $recipient->setEpostAddress($epostAddress);

        return $recipient;
    }
431404
public function addRecipient ($email, $name = null, $details = array ())
    {

        // Add email and name to details

        $details['email']       = $email;
        $details['name']        = $name;

        // Add the recipient

        $this->_recipients[]    = $details;

    }
946691
public function sender($email, $name = null)
    {
        $email = $this->normalizeEmail($email);
        $this->getSwiftMessage()->setSender($email, $name);

        return $this;
    }
513378
public function addRecipient($name, $email, $amount) {
    $this->recipients->addRecipient($name, $email, $amount);
    return $this;
  }
265916
public function addCc( $email, $name = null )
	{
		$this->_object->addCc( $email, $name );
		return $this;
	}
1025166
public function addAddress($email, $name = '')
    {
        if (empty($email)) {
            throw new MailerException('email is required for addAddress!');
        }

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

        return $this;
    }
639380
public function addTo($email, $name='')
    {
        if (!is_array($email)) {
            $email = array($name => $email);
        }

        foreach ($email as $n => $recipient) {
            $this->_addRecipientAndHeader('To', $recipient, is_int($n) ? '' : $n);
            $this->_to[] = $recipient;
        }

        return $this;
    }
676290
public function setEmail($email)
    {
        if (!is_string($email)) {
            $email = strval($email);
        }

        $this->email = $email;
    }
220135
public function addCc( $email, $name = null )
	{
		$this->object->addCc( $email, $name );
		return $this;
	}
239112
public function addCC( $email )
    {
        if ( is_array( $email ) )
        {
            $this->mailer->addCC( $email[ 'email' ], $email[ 'name' ] );
        }
        else
        {
            $this->mailer->addCC( $email );
        }
    }
279445
public function setReplyTo($email)
    {
        if ($this->isValidEmail($email) === true) {
            $this->reply_to = $email;
        } else {
            return false;
        }
    }
380041
public function to($emails)
    {
        if (is_array($emails)) {
            $this->to = $emails;
        } else {
            $this->to = (array) $emails;
        }

        return $this;
    }