I've looked everywhere and can't find an answer to my problem. I want to unactivate user account on registration and afterwards activate it in BackOffice. I managed to do this but I want to send user an email when his account is activated so i added a button beside activate/unactivate radio button, i added the following in AdminCustomers.php
<input type="submit" value="'.$this->l(' Send Email to inform user ').'"/>
But i don't know how to send email. My question may seem very simple to you but I am new to php/html so it is a bit hard for me. I have searched and found many examples to send email but none of them seems to be working.
EDIT: The reason i'm doing this is that we have two types of clients: individuals and companies. And for companies we need to verify the provided info (ex:VAT number). And then activate the account because it gives them access to special prices.
I ended up creating a module for this. It works perfectly with Prestashop 1.5.