Skip to content

Commit

Permalink
Merge pull request #1 from 8blvck/develop
Browse files Browse the repository at this point in the history
* fix of Call to undefined method Message::setTo()
  • Loading branch information
VadBe authored Apr 19, 2023
2 parents 4d8e2b4 + b0c060e commit dcad62b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions models/MailBlocker.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,9 @@ public static function filterMessage($template, $message)
unset($recipients[$address]);
}
}

$message->setTo($recipients);

$message->forgetTo();
$message->to($recipients);
return count($recipients) ? null : false;
}
}

0 comments on commit dcad62b

Please sign in to comment.