i want to create reset password link and mail it to customer using php code what have i to write to do this could not figure out ?..
i wrote below code in my custom page but it not works:
$email='[email protected]';
$customer = Mage::getModel('customer/customer')->setWebsiteId(Mage::app()->getStore()->getWebsiteId())->loadByEmail($email);
$newResetPasswordLinkToken = $customer->_getHelper('customer')->generateResetPasswordLinkToken();
echo $customer->changeResetPasswordLinkToken($newResetPasswordLinkToken);
$customer->sendPasswordResetConfirmationEmail();