Jump to content

Désactiver temporairement l'envoi de mail à l'inscription


Recommended Posts

Bonsoir à tous,

Je souhaiterai savoir si il est possible de désactiver temporairement l'envoi de mail lors de l'inscription d'un nouveau client ?
et si oui comment faire ?

Bonne soirée

Share this post


Link to post
Share on other sites

Bonjour Néantine et bienvenue à toi.
Je ne connais pas de moyen de le faire dans la configuration de PS, cependant, en modifiant le fichier authentication.php, à la racine de ton site, c'est jouable.

Tu peu remplacer :

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))



Par

//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))



A bientot,
Cdlt,
Pierre.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More