From 73bfa9598f7593f08040092fb28f93854dd7c8cb Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Sun, 1 Oct 2023 09:27:32 +0200 Subject: [PATCH] [Notifier] Tweak an error message --- Channel/EmailChannel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Channel/EmailChannel.php b/Channel/EmailChannel.php index c5eec59..69caaad 100644 --- a/Channel/EmailChannel.php +++ b/Channel/EmailChannel.php @@ -57,7 +57,7 @@ public function notify(Notification $notification, RecipientInterface $recipient if ($email instanceof Email) { if (!$email->getFrom()) { if (null === $this->from) { - throw new LogicException(sprintf('To send the "%s" notification by email, you must configure the global "from" header. For this you can set a sender in the global "envelope" of the mailer configuration or set a "from" header in the "asEmailMessage()" method.', get_debug_type($notification))); + throw new LogicException(sprintf('To send the "%s" notification by email, you must configure a "from" header by either setting a sender in the global "envelope" of the mailer configuration or by setting a "from" header in the "asEmailMessage()" method.', get_debug_type($notification))); } $email->from($this->from);