Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/magento/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Magento 忘记密码不发送电子邮件_Magento_Magento 1.5 - Fatal编程技术网

Magento 忘记密码不发送电子邮件

Magento 忘记密码不发送电子邮件,magento,magento-1.5,Magento,Magento 1.5,不知你是否能帮助我。我安装了Magento,当客户选择“忘记密码”时,系统不会发送重置密码电子邮件 所有其他电子邮件都正常工作。我已经设置了新的密码模板,并在Magento的管理员中分配了它 我一辈子都搞不懂为什么只有重置密码的电子邮件没有发送,而其他的都没有发送 请帮忙 谢谢, Ev查看app/code/core/Mage/Customer/controllers/AccountController.php文件。查找放弃PasswordPostAction。一步一步地分析它-检查$this->

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

所有其他电子邮件都正常工作。我已经设置了新的密码模板,并在Magento的管理员中分配了它

我一辈子都搞不懂为什么只有重置密码的电子邮件没有发送,而其他的都没有发送

请帮忙

谢谢,
Ev

查看
app/code/core/Mage/Customer/controllers/AccountController.php
文件。查找
放弃PasswordPostAction
。一步一步地分析它-检查
$this->getRequest()->getParams()
是否为您提供了emal地址,检查它是否验证(可能对验证代码进行了一些本地更改)。看看密码生成代码——新密码生成了吗?检查
Mage\u Customer\u Model\u Customer
类和
sendpasswordrementeremail
方法,并尝试跟踪其中的错误。打印您可以获得的所有值(电子邮件、名称、存储配置以及检查异常和警告-打开php错误显示!)


这将有助于您跟踪问题,并收集足够的数据来识别问题。

要解决问题,删除app/design/frontend///layout/中主题使用的custom.xml就足够了,因此将使用基本主题附带的默认布局(在app/design/frontend/base/default/layout/customer.xml中)

或者可以更新custom 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页column.phtml
重置密码

是的,里面什么都没有。谢谢,现在就开始。将恢复显示的所有变量。姓名、电子邮件、storeid、新密码。找不到错误,所有代码都是库存标准Magento。