$recipient->getEmail(), 'name' => $recipient->getFullName(true, false, $locale), ]; } // Override the existing recipient data $this->to = []; $this->variables = array_filter($this->variables, function ($variable) { return !is_a($variable, RecipientEmailVariable::class); }); $this->setAddress($to); $this->variables[] = new RecipientEmailVariable($recipients, $this); return $this; } }