Dolke Posted February 2, 2014 Share Posted February 2, 2014 (edited) Hi, I want to disable email that comes to my email address when customer send me a message on the website. Notifiation in the BO is fine, but now Im getting email with that message as well and I want to disable that. Im stuck, help please.Thank youDean Edited February 18, 2014 by Dolke (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted February 3, 2014 Share Posted February 3, 2014 ContactController.php Around line 195 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%1$s #tc%2$s'), $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.'); } Get rid of the first Send() 1 Link to comment Share on other sites More sharing options...
Dolke Posted February 18, 2014 Author Share Posted February 18, 2014 (edited) Hi Nemo1, Thanks for the suggestion, but I think I was making this work without messing into the code... Edited February 18, 2014 by Dolke (see edit history) Link to comment Share on other sites More sharing options...
Dolke Posted February 18, 2014 Author Share Posted February 18, 2014 Update:In the meantime I tried your suggestion but it doesn't work. It will give me blank page when I click the contact menu item... Link to comment Share on other sites More sharing options...
NemoPS Posted February 18, 2014 Share Posted February 18, 2014 You probably had a php error, enable error reporting and see if you missed a comma or something like that Link to comment Share on other sites More sharing options...
Dolke Posted February 18, 2014 Author Share Posted February 18, 2014 (edited) So you think there is no way I can disable this somewhere in the BO? There is no such a feature?I will turn on the error reporting and see whats going on... Edited February 18, 2014 by Dolke (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted February 18, 2014 Share Posted February 18, 2014 As far as i know, no, as you can see from the code, there is no switch Link to comment Share on other sites More sharing options...
Dolke Posted February 18, 2014 Author Share Posted February 18, 2014 OK, thanks Nemo, I will check this in the next hour or so and see whats going on.I will let you know the progress. Thanks again.Dean Link to comment Share on other sites More sharing options...
Dolke Posted February 18, 2014 Author Share Posted February 18, 2014 This is what Im getting: http://prntscr.com/2tl1lvYou were right about the some character making an issue but where ever I comment this send() function its always giving me a blank page.Can you show me what part of the code do I need to comment/delete?Ty Link to comment Share on other sites More sharing options...
Dolke Posted February 18, 2014 Author Share Posted February 18, 2014 Update:Its fine now, I was doing something wrong with the code but I'm not sure what.Your solution seems to be working fine Nemo1.Thank you.I will mark this topic solved. Link to comment Share on other sites More sharing options...
Recommended Posts