public function addTo($emails) {
    $email_array = $this->validEmailsArray($emails, "'to' recipient");
    foreach($email_array as $email) {
      $this->message->addTo($email);
    }
  }
public function addTo($emails) {
    $email_array = $this->validEmailsArray($emails, "'to' recipient");
    foreach($email_array as $email) {
      $this->message->addTo($email);
    }
  }
public function addTo ( $ emails ) { $ email_array = $ this -> validEmailsArray ( $ emails , "'to' recipient" ) ; foreach ( $ email_array as $ email ) { $ this -> message -> addTo ( $ email ) ; } }
Adds a "to" address, or array of addresses, to the mail object.

@param mixed $emails String email of individual recipient, or array of
emails of recipients.
@throws \InvalidArgumentException If any of the input emails are not
correctly formatted email addresses.
Adds a to address or array of addresses to the mail object .