Closed
Description
Symfony version(s) affected: 4.3.3
Description
Current logic
https://github.com/symfony/mime/blob/c71b839cc39d446f14afaef771c16f221d85c331/Email.php#L424
requires to have either text or html part before adding attachment part
https://github.com/symfony/mime/blob/c71b839cc39d446f14afaef771c16f221d85c331/Email.php#L443
which effectively prevents sending email message with only attachments.
How to reproduce
$email = (new Email())
->to('[email protected]')
->subject('See attached file')
->attachFromPath(__FILE__, 'test.php')
;