Jump to content

Diasble message copy to customer on contact form


presdeco

Recommended Posts

Hi

 

When someone use the contact form to send a message, prestashop is sending a copy of his message tohis email address. How can I disable the sending of this email? There is no point to inform the customer by emailthat the message was received since he is already informed about this in the contact -us page (after sending the message).

 

I see in ContactController.php this lines but don't now what to remove:

----------------------------------------------

if (empty($contact->email))
                        Mail::Send($this->context->language->id, 'contact_form', ((isset($ct) && Validate::isLoadedObject($ct)) ? sprintf(Mail::l('Your message has been correctly sent'), $ct->id, $ct->token) : Mail::l('Your message has been correctly sent')), $var_list, $from, null, null, null, $fileAttachment);
                    else
                    {                    
                        if (!Mail::Send($this->context->language->id, 'contact', Mail::l('Message from contact form').' [no_sync]',
                            $var_list, $contact->email, $contact->name, $from, ($customer->id ? $customer->firstname.' '.$customer->lastname : ''),
                                    $fileAttachment) ||
                                !Mail::Send($this->context->language->id, 'contact_form', ((isset($ct) && Validate::isLoadedObject($ct)) ? sprintf(Mail::l('Your message has been correctly sent'), $ct->id, $ct->token) : Mail::l('Your message has been correctly sent')), $var_list, $from, null, $contact->email, $contact->name, $fileAttachment))
                                    $this->errors[] = Tools::displayError('An error occurred while sending the message.');
                    }

-----------------------------------------------

 

thank you!

Link to comment
Share on other sites

  • 2 weeks later...
×
×
  • Create New...