Jump to content

Mail automatique formulaire contact


xaxa

Recommended Posts

Bonjour, 
 
A ta place, j'overriderais la méthode postProcess de ContactController. 
 
Je sais pas quelle version de Presta tu as mais tu dois avoir une ligne comme ça vers la fin de la postProcess.

elseif (!count($this->errors))
$this->context->smarty->assign('confirmation', 1);

Dans ce elseif, j'ajouterais qqchose comme ça (fonction Send à adapter à ton cas).

Mail::Send($this->context->language->id, 'contact_form', ((isset($ct) && Validate::isLoadedObject($ct)) ? sprintf(Mail::l('Your message has been correctly sent #ct%1$s #tc%2$s'), $ct->id, $ct->token) : Mail::l('Your message has been correctly sent')), $var_list, $from, null, null, null, $file_attachment);

C'est une piste... à tester ;)

 

 

Link to comment
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...