Jump to content
presdeco

Diasble message copy to customer on contact form

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!

Share this post


Link to post
Share on other sites

rather than remove this I would suggest changing the front office confirmation by adding (please check email, if in spam please add us to your contacts).

 

this will help ensure future emails are not marked as spam by receivers email program.

Share this post


Link to post
Share on other sites

×

Important Information

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