Comments (19)
I have the same issue (in multiple websites), but rather in version 3.0.11.
What I've noticed is that order confirmation emails are sent twice.
I downgraded to 3.0.10, it started working again then.
from magento2-mandrill.
ping @centerax
from magento2-mandrill.
Does this have an update , we also getting the same issue with module version 3.0.11 and Magento version 2.0.15
from magento2-mandrill.
Also experiencing the issue with module version 3.0.10 and Magento version 2.1.7. For me the problem is occurring in a custom module I use to send shipment emails. When using the shipment sender function in a loop, I just get multiple copies of the first email in the loop:
$this->shipmentsender->send($shipmentData);
This has to be related to the email functionality as in the same loop the tracking is assigned under the $shipmentData object which iterates through each email perfectly. Also if I disable the Mandrill extension, the emails are sent correctly.
from magento2-mandrill.
This was introduced here:
17ca40f#diff-8564704260549e71a21bcfaef977ef33
Reverting back to class replacing, instead of plugin can be used to workaround.
from magento2-mandrill.
We will take a look on Monday. Thanks
from magento2-mandrill.
as per the different comments version 3.0.11 is not the cause because this problem is happening on 3.0.10 as well. correct?
from magento2-mandrill.
from magento2-mandrill.
@jbalca What do you see on your mandrill account under https://mandrillapp.com/settings/api? Do you see multiple api calls for one order? I still cannot replicate this with new order or shipments.
from magento2-mandrill.
@centerax Hint: try to send more then 1 message per Magento run, for example 'Send to a 2 Friends'.
It's not multiple per message, but 1st message as messages Magento have to send.
from magento2-mandrill.
@pyostrike thanks. I have tried and both messages are sent okay. Can you provide logs and/or more information on how to replicate step by step?
from magento2-mandrill.
@centerax sorry, have no access to mandrill anymore.
I did following as a test:
- opened a product at Magento store.
- pushed a 'Send to a Friend' button.
- in form added [email protected] as first 'to' address
- then added [email protected] as second 'to' address
In mandrill api logs there were 2 sent messages, but each to [email protected], so it was two api calls, but the object ( message ?) used in both calls was the first created (to [email protected])
from magento2-mandrill.
As per earlier comment, I'm using 3.0.10 and experiencing the same issue described above with a custom module that sends shipment emails.
Works fine with Mandrill disabled but with Mandrill, the first email in the loop is duplicated x times for each iteration. So I'm not convinced the issue is isolated to 3.0.11...
Mandrill API logs are correct as per the emails being sent, i.e x emails to the first iteration.
from magento2-mandrill.
I'm fairly certain the fix I detail in #37 is also tied to this issue.
I can only guess that different expressions of this issue are being caused by differing PHP or Magento versions.
Do you need me to create a PR with a core fix instead of a separate plugin?
from magento2-mandrill.
@Silarn We dont need you to do anything :) if you want to contribute, go for it!
from magento2-mandrill.
finally, I was able to replicate.
looking for a solution, will review what @Silarn provided.
from magento2-mandrill.
guys, we merged @Silarn PR to develop
. Can you test and see how it goes?
from magento2-mandrill.
I know this change (as a second module disabling the original plugin and adding essentially the same alternate plugin switching between Transport models) has solved any email dispatch issues I was having after upgrading to 3.0.11. I never noticed any duplicate message problems, but it was only live for a short time before I noticed an issue and pushed a fix.
from magento2-mandrill.
Hi there.
We are experiencing this issue in our M2 shop also with module version 3.0.11.
Our business logic is to send 3 order confirmation emails to 3 different address. But we received 3 same emails to the 1 address among 3.
We just tried your develop branch with #42. This fixed the issue for us.
@centerax we confirm that issue is fixed with #42.
from magento2-mandrill.
Related Issues (20)
- Error thrown in Magento 2.3 when mandrill is not enabled. HOT 5
- Error while sending test email (storeId hardcoded)
- Shipment emails - When got hard bounce - trials every 1 minute HOT 11
- Order Emails Not Sending 2.2.8 CE - Test Email Works HOT 1
- Version 3.2.7 Not Working with Magento 2.2.8 HOT 1
- Magento 2.3.1 Invalid Sender (Fix) HOT 6
- Mandrill stops working on Magento 2.3.2 HOT 1
- Error thrown in Magento 2.3.1: Call to a member function toString() on string HOT 1
- from_name and from_email are set to null on Magento2.3.1 HOT 1
- mandril install by putty show error HOT 3
- Mandrill Config Not Showing in Admin Panel HOT 2
- Readme.md fails to describe or link what Mandrill is or what this extension does HOT 1
- Error when sending emails HOT 2
- Extension Not compatible /broken with 2.3.3 HOT 1
- M2.3.3 Critical Error - Wrong Invalid argument passed Ebizmarts\Mandrill\Model\Transport constructor HOT 1
- Magento 2.3.3 Incompatibility HOT 2
- Error when sending Test email for Magento 2.3.3 HOT 1
- Couldnt send test Emails HOT 7
- Error while run composer with php 7.3.14 HOT 1
- 3.3.16 - Error During Configuration & eMails not being sent HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from magento2-mandrill.