Skip to content
This repository has been archived by the owner on Jun 1, 2018. It is now read-only.

if not an order email, send using core send function #161

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

Triickii
Copy link

@Triickii Triickii commented Jan 17, 2017

Situation
A third party extension is adding non-order emails to the core_email_queue. We now have around 150 emails queued and ready to send in this table, with some order emails at the end.

Problem
When Ebizmarts_Mandrill_Model_Email_Queue is ran on the cron it is loading in the first 100 emails and processing them, on line 33 the script checks if $message->getEntityId == 'order' with no else statement to capture non-order emails. None of these 100 emails in the queue have that entity_id so they are all skipped. The next time the cron runs it loads the same 100 emails (because they haven't been processed) and proceeds to skip them all again. The loop continues.

Solution
Added an else to capture and send non-order emails using Mage_Core_Model_Email_Queue default send() function.

@mannebusk
Copy link

mannebusk commented Apr 20, 2017

Yep, ran in to the same problem. Think it should still send through mandrill though. If you don't have different store settings for the API key it should be easy to add. Otherwise we need an other way to pass a store_id through.

@Santiagoebizmarts
Copy link
Contributor

Hello,

This module has been discontinued. We suggest everyone to move to the new extension to integrate Magento with MailChimp.
https://github.com/mailchimp/mc-magento

Regards.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants