function Email::ensureBodyValid
2 calls to Email::ensureBodyValid()
- Email::ensureValidity in vendor/
symfony/ mime/ Email.php - Email::generateBody in vendor/
symfony/ mime/ Email.php - Generates an AbstractPart based on the raw body of a message.
File
-
vendor/
symfony/ mime/ Email.php, line 402
Class
- @author Fabien Potencier <fabien@symfony.com>
Namespace
Symfony\Component\MimeCode
private function ensureBodyValid() : void {
if (null === $this->text && null === $this->html && !$this->attachments) {
throw new LogicException('A message must have a text or an HTML part or attachments.');
}
}