willniners Posted March 31, 2011 Share Posted March 31, 2011 How do I change the settings to stop the new account welcome email to customers?Thanks,Eddie Link to comment Share on other sites More sharing options...
shokinro Posted April 1, 2011 Share Posted April 1, 2011 I don't know if there is a way to disable the email by configuration. I guess there is not.but you can do this by commeting out some lines of codecomment out following lines in file 1.3x - YourSiteRoot/authentication.php 1.4x - YourSiteRoot/controllers/AuthController.php /* if (!Mail::Send(intval($cookie->id_lang), 'account', 'Welcome!', array('{firstname}' => $customer->firstname, '{lastname}' => $customer->lastname, '{email}' => $customer->email, '{passwd}' => Tools::getValue('passwd')), $customer->email, $customer->firstname.' '.$customer->lastname)) $errors[] = Tools::displayError('cannot send email'); */ Link to comment Share on other sites More sharing options...
artofadornment Posted February 24, 2013 Share Posted February 24, 2013 (edited) Anyone know how to do this in PS 1.5.3? I know it's in controllers/front/AuthController.php but I have no idea which part to comment out (the code isn't the same)... Thanks! Edited February 24, 2013 by artofadornment (see edit history) Link to comment Share on other sites More sharing options...
vzero Posted May 30, 2013 Share Posted May 30, 2013 Hi, For 1.5 I made a controller override: Create a file in Prestashop ROOT > override > controllers > AuthController.php I then put this into it <?php class AuthController extends AuthControllerCore { protected function sendConfirmationMail(Customer $customer) { return true; } } ?> This removes the mail function and returns true so Prestashop things it was sent. If you don't return true you get an error message saying the email was not sent. Link to comment Share on other sites More sharing options...
El Patron Posted May 30, 2013 Share Posted May 30, 2013 (edited) an approach that requires no coding changes and/or using class overrides rename the emails that are used for new account notification (to the customer) mails/(lang folder name/account.html and account.txt This way when PS goes to send the email and doesn't not find that template it will then, do nothing, i.e not send the email. Edited May 30, 2013 by eTiendas.co (see edit history) 1 Link to comment Share on other sites More sharing options...
samprasanna Posted November 15, 2014 Share Posted November 15, 2014 Thank you very muchIt works .. Link to comment Share on other sites More sharing options...
Recommended Posts