emartech / 3rd-party-integrations-magento-M2

Please note: this plugin is deprecated. we have a new version of the plugin- please contact emarsys support for more info
MIT License
0 stars 5 forks source link

Email subjects containing special characters are not decoded #81

Open Andrewb89 opened 6 years ago

Andrewb89 commented 6 years ago

Email subjects containing special characters are not decoded.

In case you try to share wishlist you'll be able to see the following email subject: "Take a look at John Doe's Wish List"

The problem is in app/code/Emarsys/Emarsys/Model/Template/TransportBuilder.php class which doesn't decode special characters in email subjects.

The solution is to replace all occurrences of ->setSubject($template->getSubject()) with ->setSubject(html_entity_decode($template->getSubject(), ENT_QUOTES))

eghanin commented 6 years ago

thank you Andrew!