Magento不发送忘记密码的电子邮件 [英] Magento not sending forgot password emails
问题描述
当客户尝试重设密码时,Magento未发送电子邮件.我确实知道Magento正在重置密码,但邮件只是没有发送出去
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;
}
推荐答案
我在这里刚刚回答了类似的答案: https://stackoverflow.com/a/10810193/778669
I just answered a similar answer over here: https://stackoverflow.com/a/10810193/778669
简而言之;转到Admin > System > Configuration > Advanced > System > Mail Sending Settings
并确保将Disable Email Communications
设置为No
,这对我来说是个问题.
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.
这篇关于Magento不发送忘记密码的电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!