More or less a few arrays to setup, I would suggest tacking onto an observer event (or a core rewrite, in which case you'll find the send function for customer registrations in the mage core customer folder!) to send your custom script out (there's a list of the observers available if you google!):
Declare the sender as an array:
$sender = Array('name' => 'You',
'email' => 'you@domain.com');
The recipient address, just literally needs to be a string, similarly to the mail subject.
$email = 'customer@customer.com';
Set your template id:
$templateId = 40;
And finally declare your custom variables to be sent along to the template:
$vars = Array('nameOfCustomer' => $customerName,
'shippingDetails' => $shipping,
'storeName' => $store_name,
'storeURL' => $store_url,
'orderId' => $orderId);
Followed up with the send function, i tend to just leave the $name as a null var:
$storeId = Mage::app()->getStore()->getId();
$translate = Mage::getSingleton('core/translate');
Mage::getModel('core/email_template')
->setTemplateSubject($mailSubject)
->sendTransactional($templateId, $sender, $email, $name, $vars, $storeId);
Then in your template call the var as literal for example:
{{var storeName}}
That's not possible out of the box.
The password can be sent only when the user creates the account because that's the only time when you have the password in clear text.
Once it is saved in the db and you lose the customer instance you cannot get back the password because it is hashed.
But anyway, it's not a good practice to send the password via e-mail in clear text.
The customer should already know his password, and if he forgets it he can click on "Forgot my password"
Best Answer
First rewite below file vendor/magento/module-customer/Model/AccountManagement.php
Find below code from file
Function is :
and change