-
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
Fix email sender #16356
Fix email sender #16356
Conversation
Hi @versdivers. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
Hello @versdivers , |
Just FYI: but I think this PR fixes the same problem as another PR: #15119 The issue which #15119 tries to fix is #14952 @versdivers: what do you think, are these the same? And if yes: which fix would be the most correct one? Update: there is also someone who claims that the Amazon Pay module (which was added to Magento 2.2.4) is causing this problem: #16231 (comment) |
Hello @hostep , What I think:
I think we should coordinate a kind of merge. |
@phoenix128 this is my first contribution. Pretty new to github. Not how i can do that |
@hostep I can confirm that this will infact also solve that problem. You can change the di.xml but they maybe set that there for a reason. Instead of just maybe breaking something somewhere else my fix is a soft fix that will keep compatibility. Not for the Fooman module because they change the setFrom function but you can just implement the same changes there. |
Click on the button and fill in the details in the form and submit it. |
@DanielRuf Haha sorry. I signed it. Thanks! |
Hello @versdivers ,
You also have 2 unit tests failing:
Can you please check them and fix it? |
@phoenix128 The second error is on the test Unit. I am not sure how those are setup and currently do not have the time to investigate test PHP files within Magento since they are buggy as they are and i have a big project to finish up. I am just correcting a big bug within Magento 2.2.2 - 2.2.4 and giving the solution to the community so people can fix it themself or Magento can release a patch / update based on it. I can confirm that this will work perfectly in a development environment or a production environment since this has been already implemented in multiple live websites that we control. When the big project is done i will come back and setup a test enviroment for this change. For now i am afraid that this is all the information that i can provide. I do see why the testings on this has to be done and i am glad something like this is in place even for a small change like this. If anyone has time they are free to implement the 2 changes themself and run the needed tests. My apologies. |
Hello @versdivers , Thank you for your work and for your time. |
Only just seen this PR. Sorry I created an alternative PR with the same change, but with full test coverage. |
@gwharton :D Awesome! good job |
I am going to close this PR. There have been several PRs produced that are all trying to fix the same issue. I have collated everyones opinion and generated a new PR with full test coverage, Travis pass and Codacy pass. If you would like to collaborate further on this issue, you are encouraged to do so through PR #16461 |
#16355
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.