We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6061c5 commit 2adc530Copy full SHA for 2adc530
Message.php
@@ -122,8 +122,8 @@ public function toIterable(): iterable
122
123
public function ensureValidity()
124
{
125
- if (!$this->headers->has('To')) {
126
- throw new LogicException('An email must have a "To" header.');
+ if (!$this->headers->has('To') && !$this->headers->has('Cc') && !$this->headers->has('Bcc')) {
+ throw new LogicException('An email must have a "To", "Cc", or "Bcc" header.');
127
}
128
129
if (!$this->headers->has('From') && !$this->headers->has('Sender')) {
0 commit comments