-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Magento 2.2.4 not sending from sales sender #16355
Comments
Hi @versdivers. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
where @versdivers do you confirm that you was able to reproduce the issue on vanilla Magento instance following steps to reproduce?
|
It seems that TransportBuilder and transportBuilderByStore work in different instances of the messageinterface |
i also do not get why transportBuilderByStore as been created. I see this just as bad coding tbh. We are back to creating new classes for simple adjustments. Fix: replace
with
with
and just like that we do not need the TransportBuilderByStore anymore and it works as expected. |
@versdivers this issue same as #16231. |
@versdivers Your comment above should have been the right solution in my opinion. But was turned down on review as it meant making a change to a class marked as an API. Instead we have the bodged solution that is currently in place, which still has bugs, e.g you can no longer send multiple emails at the same time, only the first will succeed, the rest will exception and fail. |
I will keep my solution in place. On update i hope Magento found a way to remove all the bugs with this but for those who run into this problem i can comfirm that this solution is working great on a live website with multistore. |
Duplicate of #14952 |
Resolved Problem Disabling AMAZON PAYMENT. |
1- I agree with others. Disabling Amazon Payment does fix the issue. I disabled payment, login, and core just for the sake of it and then enabled them again.
Now I'm not sure what are the implications of removing
|
Related issue: #14952 |
Hi @versdivers. Thank you for your report.
The fix will be available with the upcoming 2.3.1 release. |
Thank You so much. |
@pratikhmehta totally agree. The transportbuilderbystore class has already been deprecated in 2.3 and soon will be in 2.2. |
But early I used Magento 2.2.4 that time i did not get any issue like this. After upgrade version Magento 2.2.7 Issue is coming. |
Yes, the problem was introduced to fix a separate issue in 2.2.5, however the fix had unexpected consequences, including this one. You will see in PR #18472 that a fix very much along the lines of your comments above, is going to be merged very soon into 2.2 and hopefully this will be available in time for release 2.2.8. Like I said, the fix has already been applied to 2.3 in PR #18471 |
Hi @versdivers. Thank you for your report.
The fix will be available with the upcoming 2.2.9 release. |
@magento-engcom-team You already said that this would be fixed in 2.3. I do not think that there is an upcoming 2.2.9 release anymore. That version has already been released. Do you mean there is a patch for 2.2.9? We still changed it in 2.3.0 though for our customers since the fix was not implemented. |
Hi @CompactCodeEU, |
Preconditions
Steps to reproduce
Expected result
Email is sent from store email address
Actual result
It sends from the mail server default mailadress
Why
In vendor \magento\module-sales\Model\Order\Email\SenderBuilder.php the
configureEmailTemplate()
function as been changed.You can see that
$this->transportBuilder->setFrom($this->identityContainer->getEmailIdentity());
has been changed to
With further inspection it on first glance it returns the same result .
Eventually the from gets formatted within the
_formatAddress
function within Zend/Mail.php and used within the same class at setFrom function which has$this->_storeHeader('From', $this->_formatAddress($email, $name), true);
The 'From' header can have something like Test Mail test@mail.com or just test@mail.com. But the function itself returns just Test Mail with no email.
And that is because the
sprintf
function appearently seems to have issues with<>
signs. Note sure why.So i changed
to
and now it does return Test Mail test@mail.com. So that is fixed;
And now i am stuck.
this->transportBuilder->setFrom($this->identityContainer->getEmailIdentity());
-->sends what i need.
-->sends from my SMTP servers default emailaddress.
It seems like the headers are reset somewhere.
The text was updated successfully, but these errors were encountered: