不知道你是否可以幫助我。我有一個Magento安裝,當客戶選擇「忘記密碼」時,系統不會發送重置密碼電子郵件。忘記密碼不發送電子郵件
所有其他電子郵件工作正常。我已經設置了新密碼模板,並將其分配給Magento的管理員。
我不能爲了我的生活找出爲什麼只有重置密碼電子郵件不發送和其他人。
請幫忙。
感謝, EV
不知道你是否可以幫助我。我有一個Magento安裝,當客戶選擇「忘記密碼」時,系統不會發送重置密碼電子郵件。忘記密碼不發送電子郵件
所有其他電子郵件工作正常。我已經設置了新密碼模板,並將其分配給Magento的管理員。
我不能爲了我的生活找出爲什麼只有重置密碼電子郵件不發送和其他人。
請幫忙。
感謝, EV
退房的app/code/core/Mage/Customer/controllers/AccountController.php
文件。尋找forgotPasswordPostAction
。逐步分析 - 檢查$this->getRequest()->getParams()
是否爲您提供最終地址,檢查它是否有效(可能是對驗證代碼進行了一些本地更改)。查看密碼生成代碼 - 是否生成新密碼?查看Mage_Customer_Model_Customer
課程和sendPasswordReminderEmail
方法,並嘗試追蹤那裏的錯誤。打印所有可以到達的值(電子郵件,名稱,商店配置和檢查異常和警告 - 打開php錯誤顯示!)。
這應該有助於您追蹤問題並收集足夠的數據以識別它。
要解決這個問題,只需刪除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>
你看垃圾郵件文件夾? – dan
是的,那裏沒有東西。 – Jebanisa