Page 2 of 2

Re: Customers Email Not Coming Through in Contact Form

Posted: Fri Sep 21, 2018 9:19 pm
by ADD Creative
Your Mail Parameters setting is wrong. Try clearing it or set the correct parameters for your hosting.

You get the error message as your hosting is set to remove any email addresses in the Mail Parameters from the To field on any outgoing emails. Leaving it with no address to send to.

Re: Customers Email Not Coming Through in Contact Form

Posted: Sat Sep 22, 2018 5:58 am
by ADD Creative
If deleting the value in Mail Parameters and then saving didn't work (Mail Parameters should be blank). Try adding -f to the front of the email address you want to use, giving.

Code: Select all

-fstore@mydomainname.com
Or you could set Mail Engine to SMTP and ensure all the SMTP settings are correct.

Re: Customers Email Not Coming Through in Contact Form

Posted: Tue Sep 25, 2018 12:48 am
by lovenatural
ADD Creative wrote:
Sat Sep 22, 2018 5:58 am
If deleting the value in Mail Parameters and then saving didn't work (Mail Parameters should be blank). Try adding -f to the front of the email address you want to use, giving.

Code: Select all

-fstore@mydomainname.com
Or you could set Mail Engine to SMTP and ensure all the SMTP settings are correct.
You are brilliant! solved. thank you!

Re: Customers Email Not Coming Through in Contact Form

Posted: Tue Sep 25, 2018 7:24 pm
by ADD Creative
I case anyone else has the problem, what solved it? Adding the -f or switching to SMTP?

Re: Customers Email Not Coming Through in Contact Form

Posted: Wed Oct 23, 2019 7:35 am
by sjgarth
I modified the mail message to include the customers name and email.
I used ftp and text editor.
Open yourdomain/ocart2/catalog/controller/information/contact.php
Find the section of code below and enter the new $mail->setText line

Code: Select all

$mail->setTo($this->config->get('config_email'));
$mail->setFrom($this->config->get('config_email'));
$mail->setReplyTo($this->request->post['email']);
$mail->setSender(html_entity_decode($this->request->post['name'], ENT_QUOTES, 'UTF-8'));
$mail->setSubject(html_entity_decode(sprintf($this->language->get('email_subject'), $this->request->post['name']), ENT_QUOTES, 'UTF-8'));

 //Comment out the original line so its not lost     	$mail->setText($this->request->post['enquiry']);

$mail->setText("Customers Name: ".$this->request->post['name']."\n"."Customers Email: ".$this->request->post['email']."\n"."Message:\n".$this->request->post['enquiry']);

$mail->send();