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

Git Tag Cheat Sheet

Introduction Git tags are an essential feature of version control systems, offering a simple way…

2 months ago

Understanding Web Storage: Cookies, Local Storage

Introduction The methods that browsers employ to store data on a user's device are referred…

3 months ago

Setting up OpenVPN Access Server in Amazon VPC – AWS

Introduction A well-known open-source VPN technology, OpenVPN provides strong protection for both people and businesses.…

3 months ago

Enhance Error Tracking & Monitoring: Integrate Sentry with Node.js & Express.js

Introduction Integrating Sentry into a Node.js, Express.js, and MongoDB backend project significantly enhances error tracking…

3 months ago

Comparing Callbacks, Promises, and Async/Await in JavaScript

Introduction In the world of JavaScript development, efficiently managing asynchronous operations is essential. Asynchronous programming…

5 months ago

How To Secure Nginx with Let’s Encrypt on Ubuntu EC2 Instance

Introduction Let's Encrypt is a Certificate Authority (CA) that makes it simple to obtain and…

7 months ago