critellus Posted May 26, 2014 Share Posted May 26, 2014 (edited) Hello, it's possible to send mail to Admin when a new user register? Regards Edited May 27, 2014 by critellus (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted May 26, 2014 Share Posted May 26, 2014 Not by default. You have to amend the authcontroller file, or create a module hooking to actionCustomerAccountAdd Link to comment Share on other sites More sharing options...
critellus Posted May 27, 2014 Author Share Posted May 27, 2014 Thanks!! Can You help me please? I do not know how to do the modify. Regards Link to comment Share on other sites More sharing options...
Rolige Posted May 27, 2014 Share Posted May 27, 2014 As Nemo said, you have these two options, if you want to edit the file: /controllers/front/AuthController.phpEdit the last function: protected function sendConfirmationMail(Customer $customer) { if (!Configuration::get('PS_CUSTOMER_CREATION_EMAIL')) return true; return Mail::Send( $this->context->language->id, 'account', Mail::l('Welcome!'), array( '{firstname}' => $customer->firstname, '{lastname}' => $customer->lastname, '{email}' => $customer->email, '{passwd}' => Tools::getValue('passwd')), $customer->email, $customer->firstname.' '.$customer->lastname ); } Add an extra Mail::Send, like next: protected function sendConfirmationMail(Customer $customer) { if (!Configuration::get('PS_CUSTOMER_CREATION_EMAIL')) return true; Mail::Send( $this->context->language->id, 'account', Mail::l('Welcome!'), array( '{firstname}' => $customer->firstname, '{lastname}' => $customer->lastname, '{email}' => $customer->email, '{passwd}' => Tools::getValue('passwd')), '[email protected]', $customer->firstname.' '.$customer->lastname ); return Mail::Send( $this->context->language->id, 'account', Mail::l('Welcome!'), array( '{firstname}' => $customer->firstname, '{lastname}' => $customer->lastname, '{email}' => $customer->email, '{passwd}' => Tools::getValue('passwd')), $customer->email, $customer->firstname.' '.$customer->lastname ); } Obviously just need to change [email protected] to your email address. I hope this help you. Link to comment Share on other sites More sharing options...
critellus Posted May 27, 2014 Author Share Posted May 27, 2014 YOU ARE THE BEST!!! Link to comment Share on other sites More sharing options...
Recommended Posts