Categories: PHP & Frameworks

Magento – Newsletter’s emails stuck in Queue

If you are scratching your head to figure out why not Magento sending newsletter email. Here we got the same problem. You can check on Problem with Solution.
Problem

We installed newsletter pop up extension which was working fine. But after some days we saw newsletter emails are not working.We tried many solutions, Check Magento newsletter setting and also check cronjob code. But no luck. Then we have tried to uninstall recently installed extensions on the server then we found MailChimp and Newsletter POP extension are conflicting with each other.

If you have a facing same problem then you can apply the following solution

1. First, check cronjob properly set or not.

sudo crontab -e */5 * * * * /path/to/php -f /path/to/cron.php

2. This solution we found on ebizmarts forum.

Comment out line 118 of app/code/community/Ebizmarts/MailChimp/Model/Observer.php

//$subscriber->setImportMode(true); //commented out to enable Magento to send emails

In app/code/community/Ebizmarts/MailChimp/Model/Subscriber.php

Rewrite the public function sendConfirmationSuccessEmail() on line 29 with the following code

public function sendConfirmationSuccessEmail(){
  if (Mage::getStoreConfig(Ebizmarts_MailChimp_Model_Config::GENERAL_ACTIVE)) {
  /* commented out to enable Magento to send emails
  if (Mage::getStoreConfig(Ebizmarts_MailChimp_Model_Config::GENERAL_ACTIVE)) {
  return $this;
  } else {
  } else {*/  return parent::sendConfirmationSuccessEmail();
  }
  /* } */  }
}

 

Developer Diary

Share
Published by
Developer Diary

Recent Posts

Laravel vs Node Js: Which One Is Good For What?

Introduction In the world of web development, selecting the correct framework is critical. Laravel and…

3 months ago

Docker Cheatsheet: Essential Commands and Explanations

Introduction By enabling containerization, Docker has transformed the way software is built, deployed, and managed.…

8 months ago

Difference between Memcached and REDIS – Secrets of Caching

Introduction Speed and efficiency are critical in the ever-changing world of web development. Effective caching…

8 months ago

How to Revert a Git Commit: A Simple Example

Introduction Git, a popular version control system in software development, enables developers to track changes,…

8 months ago

What is Git Stash and Why Do You Need It

Introduction Are you tired of grappling with tangled changes and unfinished work while using Git?…

8 months ago

Difference between git stash pop and git stash apply

Introduction Version control is essential in software development because it ensures that changes to a…

8 months ago