In order to fix the following issue temporarily:

Magento 2.3.3 blank email with html attachment

I want to override /vendor/zendframework/zend-mail/src/Headers.php file. I have tried preferences (using di.xml) and composer way (described here), but could not make it working.

Can anyone help me to override the functionality of this class without hampering upgrade possibilities.

Thanks in advance

  • I'm also trying to figure this one out. Not sure how to override a 'src' folder.
    – Marisa
    Commented Jan 7, 2020 at 19:15


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.