I have a new website
In the email, when I register a new user, it's missing the password:
Why?
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.
Sign up to join this communityIt is a bug affecting 1.9. You can find details about it here: https://stackoverflow.com/a/31262786/1038727
Magento 1.9 version has problem to send password in emails. and not set var values under
{{htmlescape var=$customer.password}}
There is one solution to send password in email
Open the core file or extend as you like AccountController.php, find the function
createPostAction()
on line 285 or find$customer->cleanPasswordsValidationData();
just comment it like this
// $customer->cleanPasswordsValidationData();
also do it in other places as on line 809, 954
now it sends the password to customer new account email.
Other method
open or extend the custom model file
magento\app\code\core\Mage\Customer\Model\Customer.php
find the function
public function cleanPasswordsValidationData() { $this->setData('password', null); $this->setData('password_confirmation', null); return $this; }
comment out
// $this->setData('password', null);
public function cleanPasswordsValidationData() { // $this->setData('password', null); $this->setData('password_confirmation', null); return $this; }
NB: It was fixed in 1.9.3.0, see the releases notes: http://devdocs.magento.com/guides/m1x/ce19-ee114/ce1.9_release-notes.html#ce19-1930 :
The new customer e-mail now includes the customer's password.
Another SE link talking about it as per Vaibhav suggestion: password in email confirmation of registration
I think (but not checked) it's fixed by CE 1.9.3.0
In http://devdocs.magento.com/guides/m1x/ce19-ee114/ce1.9_release-notes.html#ce19-1930security-pwd , we can read :
The new customer e-mail now includes the customer's password