Magento not sending forgot password emails

…衆ロ難τιáo~ 提交于 2019-12-12 18:21:47

问题


When a customer tries to reset their password Magento is not sending the emails. I do know that Magento is resetting the password but the mails are just not sending out

Here is the code that sends the mails I think. Please help.

public function sendPasswordReminderEmail()
{
    $translate = Mage::getSingleton('core/translate');
    /* @var $translate Mage_Core_Model_Translate */
    $translate->setTranslateInline(false);

    $storeId = $this->getStoreId();
    if (!$storeId) {
        $storeId = $this->_getWebsiteStoreId();
    }

    Mage::getModel('core/email_template')
        ->setDesignConfig(array('area'=>'frontend', 'store'=>$storeId))
        ->sendTransactional(
            Mage::getStoreConfig(self::XML_PATH_FORGOT_EMAIL_TEMPLATE, $storeId),
            Mage::getStoreConfig(self::XML_PATH_FORGOT_EMAIL_IDENTITY, $storeId),
            $this->getEmail(),
            $this->getName(),
            array('customer'=>$this)
        );

    $translate->setTranslateInline(true);

    return $this;
}

回答1:


I just answered a similar answer over here: https://stackoverflow.com/a/10810193/778669

In short; go to Admin > System > Configuration > Advanced > System > Mail Sending Settings and make sure Disable Email Communications is set to No, this was the problem for me.



来源:https://stackoverflow.com/questions/9192427/magento-not-sending-forgot-password-emails

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!