Skip to content

Commit 9c28882

Browse files
committed
minor #41262 [Notifier] Improve the error on email channel sender (scuben)
This PR was merged into the 5.4 branch. Discussion ---------- [Notifier] Improve the error on email channel sender | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? |no | New feature? |no | Deprecations? |no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | License | MIT It took me too much time to figure out its not the header from but the envelope sender. Commits ------- 1779917633 [Notifier] Improve the error on email channel sender
2 parents 9fce279 + 278b712 commit 9c28882

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Channel/EmailChannel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function notify(Notification $notification, RecipientInterface $recipient
5757
if ($email instanceof Email) {
5858
if (!$email->getFrom()) {
5959
if (null === $this->from) {
60-
throw new LogicException(sprintf('To send the "%s" notification by email, you should either configure a global "from" or set it in the "asEmailMessage()" method.', get_debug_type($notification)));
60+
throw new LogicException(sprintf('To send the "%s" notification by email, you should either configure a global "from" header, set a sender in the global "envelope" of the mailer configuration or set a "from" header in the "asEmailMessage()" method.', get_debug_type($notification)));
6161
}
6262

6363
$email->from($this->from);

0 commit comments

Comments
 (0)