Advertisements

Email converted to attachments in Magento 2

Hi all,

Today this post is about an issue of email.

When email trigger from a website it seems to be a normal email in Gmail inbox, latest outlook, or any email mailbox but in the old version of outlook (< 2010) and MS Exchange email get to receive as .htm attachment If you are facing the same issue then not to worry. Just go to "vendor/zendframework/zend-mail/src/Headers.php" Then search for "$current->setEncoding($encoding);" and replace it with “$current->setEncoding($key === 'contentdisposition' && $current->getFieldValue(false) === 'inline' ? 'ASCII' : $encoding);" and done

Flush cache and try sending an email.