human Posted January 2, 2015 Share Posted January 2, 2015 I confirmed that the Register Welcome mail is sent well in my shop. I would like to be sent to me the welcome email.I use SMTP mail setting. Please help would be appreciated. Link to comment Share on other sites More sharing options...
NemoPS Posted January 2, 2015 Share Posted January 2, 2015 uhm...? Didn't you say it's sent out already? What do you mean by welcome email, if you already get the registration one? Link to comment Share on other sites More sharing options...
human Posted January 2, 2015 Author Share Posted January 2, 2015 (edited) I am admin. its mean, I want to receive all customer's welcome mail at sametime. Edited January 2, 2015 by human (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted January 3, 2015 Share Posted January 3, 2015 Ah, so you want to be informed when a new user registers? It can't be done without modifying the php code, you need to add the mail::send with possibly a new template. It's a bit of a long explanation, are you a developer? Link to comment Share on other sites More sharing options...
vekia Posted January 3, 2015 Share Posted January 3, 2015 controllers/front/AuthController.php line 704 there is a function like: 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 there another Mail::send function as nemo suggested,instead $customer->email variable use shop email: Configuration::get('PS_SHOP_EMAIL'), 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')), $customer->email, $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')), Configuration::get('PS_SHOP_EMAIL'), $customer->firstname.' '.$customer->lastname ); } you will receive exactly the same email as customer receive 1 Link to comment Share on other sites More sharing options...
human Posted January 3, 2015 Author Share Posted January 3, 2015 This is the answer I want.I was looking for a way to send a mail to all the SUB ADMIN.Thank you very much. Link to comment Share on other sites More sharing options...
human Posted January 4, 2015 Author Share Posted January 4, 2015 Ah, so you want to be informed when a new user registers? It can't be done without modifying the php code, you need to add the mail::send with possibly a new template. It's a bit of a long explanation, are you a developer? Thank you for your kindly response. Link to comment Share on other sites More sharing options...
NemoPS Posted January 5, 2015 Share Posted January 5, 2015 Uh, in the meantime, not having seen vekia's answer I wrote a tutorial: http://nemops.com/email-notifications-new-customers/ 1 Link to comment Share on other sites More sharing options...
Recommended Posts