fix: flush recipients

This commit is contained in:
Maxime 2023-02-03 11:34:22 +01:00
parent a187e3fff0
commit 1aaccd43cb
1 changed files with 3 additions and 1 deletions

View File

@ -97,6 +97,8 @@ class MailTemplate implements \JsonSerializable
*/ */
public function recipients(array $recipients): MailTemplate public function recipients(array $recipients): MailTemplate
{ {
$this->recipients = [];
if (! empty($recipients)) { if (! empty($recipients)) {
foreach ($recipients as $recipient) { foreach ($recipients as $recipient) {
if (!empty($recipient[0]) && is_string($recipient[0])) { if (!empty($recipient[0]) && is_string($recipient[0])) {