Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.
For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email email@example.com.
I have implemented a 3rd party payment gateway.
I am offering two payment methods - By cheque or by credit card.
When payment is done by cheque, the new order transactional email is fired.
But on payment by credit card, the new order email is not fired.
Is it a problem with my implementation of the payment module?
To fix this I want to see where is the code that fires a new order email on placing a new order (via check payment).
I know there is a dispatch event for after order saving and maybe the payment module isn’t triggering it. There is also a specific send e-mail function in the code, I know I have seen it. I would look around the controllers/models for the checkout to see it in there.