6

Since upgrade 2.3.2 to 2.3.3 order confirmation emails are showing empty with attachement.html file attached. The attachement.html files shows the order confirmation text which previously appeared in the message. When email with attachment is sent the message text appears in the email. We have already applied the backward compatibility patch. I assume it is a setting somewhere? Any help is much appreciated.

1

I've found the solution.

github.com/magento/magento2/issues/25076

You have to patch the following file:

vendor/zendframework/zend-mail/src/Headers.php

$current = $headers;
-        $current->setEncoding($encoding); // Delete this line under $current = $headers;
+        // PATCH
+        //$current->setEncoding($encoding);
+        $current->setEncoding($key === 'contentdisposition' && $current->getFieldValue(false) === 'inline' ? 'ASCII' : $encoding);
+        // ~PATCH
         $this->headers[$index] = $current;
         return $current;
     }
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.