AndersHelbo Posted September 8, 2014 Share Posted September 8, 2014 Hi Can someone tell me, how I disable the function, so when a customer chooses to sent a message from the contactform in Prestashop, then it does not appear in my mailbox but only in Prestashop backend? The prestashop version is 1.5.6.2. Link to comment Share on other sites More sharing options...
Kimi Posted September 8, 2014 Share Posted September 8, 2014 Try to go to Customers > Contacts and delete email for every contact. Link to comment Share on other sites More sharing options...
NemoPS Posted September 8, 2014 Share Posted September 8, 2014 You cannot get rid of all of them, or people won't be able to contact you, because of this error Please select a subject from the list provided. Link to comment Share on other sites More sharing options...
AndersHelbo Posted September 8, 2014 Author Share Posted September 8, 2014 Okay, so it is not possible to make a contact form which will only sent the messages to the backend? Else I have to make another e-mail address and use this, only on the webshop for the contact form and not in Outlook or on any computers that I use? Right! Link to comment Share on other sites More sharing options...
NemoPS Posted September 8, 2014 Share Posted September 8, 2014 well no, unless you manually edit the ContactCOntroller.php file, you can try using a fake address that nobody uses 1 Link to comment Share on other sites More sharing options...
prestashopninja Posted September 8, 2014 Share Posted September 8, 2014 If you don't want to receive emails at all, alternatively, you may override Mail::Send() method such as public static function Send($id_lang, $template, $subject, $template_vars, $to, $to_name = null, $from = null, $from_name = null, $file_attachment = null, $mode_smtp = null, $template_path = _PS_MAIL_DIR_, $die = false, $id_shop = null, $bcc = null) { return true; } 1 Link to comment Share on other sites More sharing options...
AndersHelbo Posted October 17, 2014 Author Share Posted October 17, 2014 If you don't want to receive emails at all, alternatively, you may override Mail::Send() method such as public static function Send($id_lang, $template, $subject, $template_vars, $to, $to_name = null, $from = null, $from_name = null, $file_attachment = null, $mode_smtp = null, $template_path = _PS_MAIL_DIR_, $die = false, $id_shop = null, $bcc = null) { return true; } Thanks. But where exactly do I insert this code? Link to comment Share on other sites More sharing options...
El Patron Posted October 17, 2014 Share Posted October 17, 2014 would it not be simpler, rather than making core changes, to simply set up mail rule in say outlook, to put those messages into a folder? this is because you are not 1) experienced enough to implement an 'untested' solution 2) you would lose change on upgrade 3) there may be repercussions that you will not immediately see. moving topic to development. tip: you may want to consider posting in job offers to implement this. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now