忘记密码不发送电子邮件

时间:2012-01-19 08:40:52

标签: magento magento-1.5

不知道你是否可以帮助我。我有一个Magento安装,当客户选择“忘记密码”时,系统不会发送重置密码电子邮件。

所有其他电子邮件都正常运行。我已经设置了新密码模板并将其分配给Magento的管理员。

我不能为我的生活弄清楚为什么只有重置密码电子邮件不发送而其他人都是。

请帮忙。

谢谢, EV

2 个答案:

答案 0 :(得分:1)

要解决此问题,只需删除主题在app / design / frontend /// layout /中使用的自定义customer.xml,因此默认布局附带基本主题(在app / design / frontend / base /中)将使用default / layout / customer.xml。

或者可以更新自定义customer.xml以包含以下部分:

<customer_account_resetpassword translate="label">
    <label>Reset a Password</label>
    <remove name="right"/>
    <remove name="left"/>

    <reference name="head">
        <action method="setTitle" translate="title" module="customer">
            <title>Reset a Password</title>
        </action>
    </reference>
    <reference name="root">
        <action method="setTemplate">
            <template>page/1column.phtml</template>
        </action>
        <action method="setHeaderTitle" translate="title" module="customer">
            <title>Reset a Password</title>
        </action>
    </reference>
    <reference name="content">
        <block type="customer/account_resetpassword" name="resetPassword" template="customer/form/resetforgottenpassword.phtml"/>
    </reference>
</customer_account_resetpassword>

答案 1 :(得分:0)

查看app/code/core/Mage/Customer/controllers/AccountController.php文件。寻找forgotPasswordPostAction。逐步分析 - 检查$this->getRequest()->getParams()是否为您提供了正确的地址,检查它是否有效(可能已对验证代码进行了一些本地更改)。查看密码生成代码 - 生成的新密码是什么?查看Mage_Customer_Model_Customer类和sendPasswordReminderEmail方法,并尝试跟踪其中的错误。打印您可以到达的所有值(电子邮件,名称,存储配置并检查异常和警告 - 显示php错误显示!)。

这可以帮助您跟踪问题,并收集足够的数据来识别问题。

相关问题