Closed ryan-copeland closed 3 years ago
@ryan-copeland... For our extension to cause this is almost next to impossible. I also did a test on 2.4.2 and could not replicate the issue.
One possible reason you are encountering this issue could be that the new email is blocked by your email server
@srenon I can say with certainty that it's not the email server blocking the email being sent because we have logging in place and the server is not even attempting to send the email.
I'll dig deeper and find a solution.
This should be the best place to start debugging.. https://github.com/magento/magento2/blob/2.4-develop/app/code/Magento/Sales/Model/Order/Email/Sender.php#L76
@srenon thanks for this. I'll take a closer look. The strange thing with this issue is that it works fine until you edit the email address. As soon as you edit the email address using the extension it stops sending the email.
All our extension does is update multiple database fields including sales_order.cusatomer_email.
When you click the resend button, Magento uses the same sales_order.cusatomer_email.
Double-check to see if there is a leading or ending space in the email address field.
@srenon Got to the bottom of it. DKIM verification was failing which was causing the issue. Thanks for your help on this.
@ryan-copeland .... Glad to hear that you figure it out!
Magento v2.4.1 PHP v7.4.14
Steps to replicate.
Expected outcome At points 2, 4 and 7 you should receive an order confirmation email.
Actual outcome Email only received on points 2 and 4. After editing the email address the email is no longer sent at point 7.
When clicking the send email button in the admin the page refreshes but no confirmation message is shown as in steps 2 and 4.