While doing programming in Magento 1.9 version, you might deal with the problem that you won’t able to send customer’s passwords to them inside the mail.
Yes, that’s a needed functionality for many clients. But, it’s not smooth go in Magento 1.9 version.
You need to adopt below technical solution.
To send password in an email, you need to,
Open the core file or extend as you like AccountController.php,
Find the function createPostAction() or find
$customer->cleanPasswordsValidationData();
and make a comment before starting of that line as shown in below.
//$customer->cleanPasswordsValidationData();
you can make the same change on other places as on line 809, 954
After doing this activity, I’m pretty sure it will able to send the password inside the mail.
Well, there is another method which can be adopted here.
All you need to do it, just open or extend the custom model file
magentoappcodecoreMageCustomerModelCustomer.php
find the function
public function cleanPasswordsValidationData() {
$this->setData(‘password’, null);
$this->setData(‘password_confirmation’, null);
return $this;
}
Then, make it comment by adding
// $this->setData(‘password’, null);
public function cleanPasswordsValidationData()
{
// $this->setData(‘password’, null);
$this->setData(‘password_confirmation’, null);
return $this;
}
Well, after the above step, you are done. Hope your problem will get resolved. If not, let us know via comment, we’ll guide you further.

