Giter Club home page Giter Club logo

Comments (19)

Fouad90 avatar Fouad90 commented on July 30, 2024 1

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.

avra911 avatar avra911 commented on July 30, 2024

ping @centerax

from magento2-mandrill.

cchamikara avatar cchamikara commented on July 30, 2024

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.

danwise29 avatar danwise29 commented on July 30, 2024

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.

pyostrike avatar pyostrike commented on July 30, 2024

This was introduced here:
17ca40f#diff-8564704260549e71a21bcfaef977ef33
Reverting back to class replacing, instead of plugin can be used to workaround.

from magento2-mandrill.

centerax avatar centerax commented on July 30, 2024

We will take a look on Monday. Thanks

from magento2-mandrill.

centerax avatar centerax commented on July 30, 2024

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.

avra911 avatar avra911 commented on July 30, 2024

from magento2-mandrill.

centerax avatar centerax commented on July 30, 2024

@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.

pyostrike avatar pyostrike commented on July 30, 2024

@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.

centerax avatar centerax commented on July 30, 2024

@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.

pyostrike avatar pyostrike commented on July 30, 2024

@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.

danwise29 avatar danwise29 commented on July 30, 2024

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.

Silarn avatar Silarn commented on July 30, 2024

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.

centerax avatar centerax commented on July 30, 2024

@Silarn We dont need you to do anything :) if you want to contribute, go for it!

from magento2-mandrill.

centerax avatar centerax commented on July 30, 2024

finally, I was able to replicate.

looking for a solution, will review what @Silarn provided.

from magento2-mandrill.

centerax avatar centerax commented on July 30, 2024

guys, we merged @Silarn PR to develop. Can you test and see how it goes?

from magento2-mandrill.

Silarn avatar Silarn commented on July 30, 2024

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.

akuzhel avatar akuzhel commented on July 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.