Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ec890f6

Browse files
Update src/Symfony/Component/Mime/Email.php
Co-Authored-By: Antoine Makdessi <[email protected]>
1 parent 0047cc1 commit ec890f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Mime/Email.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ private function generateBody(): AbstractPart
425425
{
426426
[$htmlPart, $attachmentParts, $inlineParts] = $this->prepareParts();
427427
if (null === $this->text && null === $this->html && empty($attachmentParts)) {
428-
throw new LogicException('A message must have a text and/or an HTML part or attachments.');
428+
throw new LogicException('A message must have a text or an HTML part or attachments.');
429429
}
430430

431431
$part = null === $this->text ? null : new TextPart($this->text, $this->textCharset);

0 commit comments

Comments
 (0)