presdeco Posted January 7, 2015 Share Posted January 7, 2015 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 More sharing options...
El Patron Posted January 19, 2015 Share Posted January 19, 2015 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. Link to comment Share on other sites More sharing options...
Recommended Posts