Magento 1.9 Fix for Sending Double Emails
On this page
DEPRECATION NOTICE (2026): Magento 1.x reached end-of-life in June 2020 and no longer receives security patches. If you are still running Magento 1.9 in production, you should migrate to Adobe Commerce (Magento 2) or an alternative platform like Shopify or WooCommerce. This article is preserved for historical reference only.
Back when I was maintaining a client's e-commerce store on Magento 1.9, we started getting complaints that customers were receiving two identical order confirmation emails. At first I thought it was a one-off, but no — every single order was sending double emails. Turns out this was a well-known Magento 1.9 bug that drove a lot of store owners crazy.
Here's how I fixed it.
TL;DR: Fix for Magento 1.9 sending double order confirmation emails. This is a known bug that affects many Magento installations.
The Cause
The issue is caused by duplicate entries in the core_email_queue table. When an order is placed, Magento sometimes creates two queue entries for the same email, resulting in the customer receiving the same order confirmation twice.
The Database Fix
Run this SQL query on your Magento database to identify duplicates:
SELECT entity_id, event_type, COUNT(*) as cnt
FROM core_email_queue
GROUP BY entity_id, event_type
HAVING cnt > 1;
To prevent future duplicates, you can add a cron job that cleans up the email queue before it gets processed:
DELETE t1 FROM core_email_queue t1
INNER JOIN core_email_queue t2
WHERE t1.message_id > t2.message_id
AND t1.entity_id = t2.entity_id
AND t1.event_type = t2.event_type;
The Code Fix
Alternatively, check your app/code/core/Mage/Core/Model/Email/Queue.php file. In the send() method, ensure that emails are being marked as sent correctly. Some custom modules or patches may interfere with this process.
If you're using third-party email extensions (like SMTP Pro or similar), check if they have a known conflict with Magento 1.9's email queue. Disabling the extension temporarily can help you confirm whether it's the source of the duplicate emails.
Sources
Related Articles
Should I use WP Engine to host my WordPress site?
Every hosting company seems to have an ace up their sleeve, it is just that most times, it doesn't work for everyone. Let's look at WP Engine and whether it's worth the premium price.
WordPress - Cron job is not working
If your WordPress cron job is not firing, here are the common causes and how to fix them.