File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,9 @@ public function shutdown() : void
4343 // Always provide events to mail as plaintext.
4444 $ body = \implode (\PHP_EOL , $ this ->eventsToMail );
4545
46- if (! empty ($ this ->requestData ['files_data ' ])) {
46+ if (empty ($ this ->requestData ['files_data ' ])) {
47+ $ this ->mail ->setBody ($ body );
48+ } else {
4749 $ mimePart = new MimePart ($ body );
4850 $ mimePart ->type = Mime::TYPE_TEXT ;
4951 $ mimePart ->charset = 'utf-8 ' ;
@@ -64,11 +66,9 @@ public function shutdown() : void
6466 $ body = $ this ->bodyAddPart ($ body , $ upload );
6567 }
6668 }
67- }
6869
69- $ this ->mail ->setBody ($ body );
70+ $ this ->mail ->setBody ($ body );
7071
71- if (! empty ($ this ->requestData ['files_data ' ])) {
7272 $ headers = $ this ->mail ->getHeaders ();
7373 /** @var \Zend\Mail\Header\ContentType $contentTypeHeader */
7474 $ contentTypeHeader = $ headers ->get ('Content-Type ' );
You can’t perform that action at this time.
0 commit comments