Add carbon copy

@param string $mail
@param string $name [optional]

@return Message
188690
public function addCc($mail, $name = null)
    {
        $mail = ($name !== null) ? (ucwords($name) . " <{$mail}>") : $mail;

        $this->headers[] = "Cc: $mail";

        return $this;
    }
769705
public function setReplyTo($email, $name = null)
    {
        if ($email instanceof ReplyTo) {
            $this->reply_to = $email;
        } else {
            $this->reply_to = new ReplyTo($email, $name);
        }
    }
924918
public function to($mail, $name = null)
    {
        $this->message->addTo($mail, $name);
        return $this;
    }
57327
public function addFrom( $email, $name = null )
	{
		$this->object->addFrom( $email, $name );
		return $this;
	}
9568
public function cc( $email, $name = null ) 
	{	
		if ( !is_array( $email ) ) 
		{
			$email = array( $email => $name );
		}
		
		foreach( $email as $address => $name )
		{
			if ( is_numeric( $address ) && is_string( $name ) )
			{
				$this->cc[$name] = null;
			}
			else
			{
				$this->cc[$address] = $name;
			}
		}
		
		return $this;
	}
1116137
public function cc($address, $name = "", array $variables = [])
    {
        if (!empty($variables)) {
            $this->variables[$address] = $variables;
        }
        $this->messageBuilder->addCcRecipient($address, ['full_name' => $name]);

        return $this;
    }
228480
public function to($mail, $name = null)
    {
        $this->mailer->addAddress($mail, $name);
        return $this;
    }
657320
public function replyTo(string $email, string $name = null)
    {
        $this->replyTo = $this->getAddressValue($email, $name);
        return $this;
    }
42866
public function addBcc($email, $name = null)
    {
        $this->bcc = array_merge($this->bcc, $this->transformEmailName($email, $name));

        return $this;
    }
593837
public function from($mail, $name = null)
    {
        $this->mailer->setFrom($mail, $name);
        return $this;
    }
589939
public function from(string $email, string $name = null)
    {
        $this->mailer->setFrom($email, $name ?? '');
        return $this;
    }
891321
public function bcc(string $email, ?string $name = null)
  {
    $this->bcc[] = ['email' => $email, 'name' => $name];
    return $this;
  }
178301
public function addReplyTo(string $address, ?string $name = null): Message
    {
        $this->replyTo[] = [
            'address' => $address,
            'name'    => $name
        ];

        return $this;
    }
1030030
public function add_to($email, $name = null) {
		if ($this->addressee_exists($email, ['to'])) {
			return;
		}

		$this->recipients['to'][] = [
			'name' => $name,
			'email' => strtolower($email),
		];
	}
138762
public function addTo(string $address, ?string $name = null): Message
    {
        $this->to[] = [
            'address' => $address,
            'name'    => $name
        ];

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

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

        $this->cc[$email] = $name;
        return $this;
    }