dotmailer / dotmailer-magento2-extension

The official Dotdigital for Magento2 extension
https://dotdigital.com/integrations/magento
MIT License
49 stars 63 forks source link

v2.4.4 Email From Address is empty in Message Object #503

Closed ghost closed 6 years ago

ghost commented 6 years ago

Since the version 2.4.4 update the from address is empty. I know which piece of code empties it. Question is, is it correct. We don't use the template functionality (yet). So i should no be emptied i think.

Please let me know. Other functionalities that uses the email from address don't work anymore.

vendor/dotmailer/dotmailer-magento2-extension/Plugin/MessagePlugin.php

if ($message->getFrom()) { $message->clearFrom(); $message->setFrom($template->getTemplateSenderEmail(), $template->getTemplateSenderName()); }

cdiacon commented 6 years ago

Hi @dheesbeen ,

Can you clarify the question, you intend to use the feature but you are worried about the from been cleared ?

Thanks, Calin.

cdiacon commented 6 years ago

@dheesbeen I see the problem now and yes it sets no from data for email and name for default message when the replace don't exist.

Thanks for sending this will have look to fix this.