I want to stop the order confirmation email on a specific payment method.

I can't achieve exactly which module perform email sending task and in which controller where I apply condition(email, sale, checkout).

Please help me as soon as possible.

1 Answer 1


Take a look at the class Magento\Quote\Observer\SubmitObserver, used in Magento/Quote/etc/frontend/events.xml.

You can override this class to add your test and avoid email sending.

Otherwise you can call the order function $order->setCanSendNewEmailFlag(false) with false as parameter when placing order.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.