Andrus Posted May 8, 2015 Share Posted May 8, 2015 (edited) Hello. I am a new user of Prestashop and have almost configured all I needed for start, but can not get this configured: Customer sends a message through Contact us Form. Everything else works: I see it in my admin panel and get a notification there, but I do not get a notification about new message to my e-mail. Customer gets an automated message that his messages is sent and we will answer soon. Is there anything I can do? Thanks, Andrus Edited May 8, 2015 by Andrus (see edit history) Link to comment Share on other sites More sharing options...
TribalDexterD Posted May 8, 2015 Share Posted May 8, 2015 Hi, see under Customers- > Contacts, if is present here your email . Link to comment Share on other sites More sharing options...
Andrus Posted May 8, 2015 Author Share Posted May 8, 2015 Yes there is my e-mail. I even tried to change the e-mail to figure out maybe the e-mail address is the problem. But still i do not get anything. Link to comment Share on other sites More sharing options...
TribalDexterD Posted May 8, 2015 Share Posted May 8, 2015 Hmmm... So, go to Advanced Parameters -> Email and try to send a test email. Tell me if you receive it. Link to comment Share on other sites More sharing options...
Andrus Posted May 8, 2015 Author Share Posted May 8, 2015 No I do not receive it. Link to comment Share on other sites More sharing options...
TribalDexterD Posted May 8, 2015 Share Posted May 8, 2015 uhhmmm Try it: Go to Advanced Parameters -> Email and tick-> Set my own SMTP parameters (for advanced users ONLY) And set SMTP parameters of your hosting provider. Link to comment Share on other sites More sharing options...
Andrus Posted May 8, 2015 Author Share Posted May 8, 2015 I changed the smtp settings and now I receive test messages. But still I do not receive message if somebody sens a message throug contact us form. Link to comment Share on other sites More sharing options...
TribalDexterD Posted May 8, 2015 Share Posted May 8, 2015 Remember to do a backup of file, always! Try this solution: You would edit the ContactController in /controllers/front/ Locate the following code 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.'); In that first if statement, you will see the variable $from which is the customers email address. Change $from to null, which will force Prestashop to use the default store email address if (!Mail::Send($this->context->language->id, 'contact', Mail::l('Message from contact form').' [no_sync]', $var_list, $contact->email, $contact->name, null, ($customer->id ? $customer->firstname.' '.$customer->lastname : ''), $fileAttachment) Link to comment Share on other sites More sharing options...
Andrus Posted May 8, 2015 Author Share Posted May 8, 2015 (edited) I did this but nothing changed. Checked and also I do not get an e-mail if anybody makes an order from shop too. So I am wondering maybe I have disabled this somewhere in settings? Could not find this place. I get Notifications in admin panel, but not to e-mail. Edited May 8, 2015 by Andrus (see edit history) Link to comment Share on other sites More sharing options...
TribalDexterD Posted May 8, 2015 Share Posted May 8, 2015 Have you installed the mailalerts module? Link to comment Share on other sites More sharing options...
Andrus Posted May 8, 2015 Author Share Posted May 8, 2015 Yes mailalert is installed. It sent me an e-mail when ordered product was out of stock, so strange that some of it works. But no message about new orders. My site is on Maintenance mode at the moment. Can this be the problem? Or it should work even on this mode? Link to comment Share on other sites More sharing options...
TribalDexterD Posted May 8, 2015 Share Posted May 8, 2015 No, this isn't the problem, it work even on this mode. Link to comment Share on other sites More sharing options...
TribalDexterD Posted May 8, 2015 Share Posted May 8, 2015 Maybe this is a stupid question, but: You tick under mailalerts module "Receive a notification when an order is placed" and put your email under "email addresses"? Link to comment Share on other sites More sharing options...
Andrus Posted May 8, 2015 Author Share Posted May 8, 2015 Yes that I have done. So notification I get, but nothing to this e-mail. And still if a customer sends something from contact us, I do not get an e-mail. Only notification. Link to comment Share on other sites More sharing options...
TribalDexterD Posted May 8, 2015 Share Posted May 8, 2015 Where is hosted your shop? Link to comment Share on other sites More sharing options...
Andrus Posted May 8, 2015 Author Share Posted May 8, 2015 https://www.wavecom.ee/en/webhosting/ PERFORMANCE package. Link to comment Share on other sites More sharing options...
TribalDexterD Posted May 8, 2015 Share Posted May 8, 2015 I don't know this hosting. Can you see the logs (of emails outbound) on your cpanel? Link to comment Share on other sites More sharing options...
TribalDexterD Posted May 8, 2015 Share Posted May 8, 2015 Problem was that the andru's shop use two languages and the hosting use Suhosin patch for PHP which limits the maximum number of fields allowed in a form 1000 for suhosin.post.max_vars and it give some problems with the translation. The fix that we use in this case is the following: Create a file called php.ini and copy&paste it -> suhosin.post.max_vars=4252suhosin.request.max_vars=4252max_input_vars=4252 and put it in the admin folder of prestashop. Emails works now! PS: Sorry for my makeshift english 1 Link to comment Share on other sites More sharing options...
Andrus Posted May 8, 2015 Author Share Posted May 8, 2015 Big Thansk to TribalDexterD . Problem solved! 1 Link to comment Share on other sites More sharing options...
TribalDexterD Posted May 8, 2015 Share Posted May 8, 2015 You're welcome!!! 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