Skip to content

Commit

Permalink
[Notifier] Tweak an error message
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Oct 1, 2023
1 parent 2e11577 commit 28ba7d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Component/Notifier/Channel/EmailChannel.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 28ba7d9

Please sign in to comment.