1

I am facing an issue in receiving email. I configured the sales email setting properly in Magento 1.9.2.0 and it was working good. But When I upgraded it to Magento 1.9.2.2 the emails are not being sent. I also checked the Cron, it is also set.

Is there any way to set it from admin panel? Or any way to get emails in my email box?

7ochem
  • 7,532
  • 14
  • 51
  • 80

2 Answers2

1

After weeks of research and troubleshooting cron jobs in magento 1.9.2.2, i have finally found a solution from another forum. It worked without having to edit any coding.

From magento connect manager install ASCHRODER SMTP plugin and configure appropriately by going to;

System -> Configuration -> ASCHRODER EXTENSIONS -> SMTP -> Queue Configuration -> Queue Usage -> Never

Order Confirmation will be sent quickly.

Fabian Schmengler
  • 65,791
  • 25
  • 187
  • 421
user42407
  • 11
  • 1
0

Well if you really want to go around the cron setting and get emails by code-patching(which IMHO is not a good idea, but can be temporary patch), then you've to override Mage_Core_Model_Email_Template class as depicted here in the answer.

New order email confirmation not being sent

Just put the class file in same path in local codepool(app/code/local/Mage/Core/Model/Email/Template.php), then open this file and find and comment out the if condition as below:

//if ($this->hasQueue() && $this->getQueue() instanceof Mage_Core_Model_Email_Queue) {
            /** @var $emailQueue Mage_Core_Model_Email_Queue */
            $emailQueue = $this->getQueue();
            $emailQueue->setMessageBody($text);
            $emailQueue->setMessageParameters(array(
                    'subject'           => $subject,
                    'return_path_email' => $returnPathEmail,
                    'is_plain'          => $this->isPlain(),
                    'from_email'        => $this->getSenderEmail(),
                    'from_name'         => $this->getSenderName(),
                    'reply_to'          => $this->getMail()->getReplyTo(),
                    'return_to'         => $this->getMail()->getReturnPath(),
                ))
                ->addRecipients($emails, $names, Mage_Core_Model_Email_Queue::EMAIL_TYPE_TO)
                ->addRecipients($this->_bccEmails, array(), Mage_Core_Model_Email_Queue::EMAIL_TYPE_BCC);
            $emailQueue->addMessageToQueue();

            return true;
  //      }

Then you can debug the cron setting and when you fix the cron then remove the file from local pool.

Hope this helps you out.

Vicky Dev
  • 1,992
  • 9
  • 29
  • 51