Post by ADD Creative » Fri Sep 21, 2018 9:19 pm

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.

www.add-creative.co.uk


Active Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by ADD Creative » 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.

www.add-creative.co.uk


Active Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by lovenatural » Tue Sep 25, 2018 12:48 am

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!

New member

Posts

Joined
Sat Aug 08, 2015 12:04 am

Post by ADD Creative » Tue Sep 25, 2018 7:24 pm

I case anyone else has the problem, what solved it? Adding the -f or switching to SMTP?

www.add-creative.co.uk


Active Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by sjgarth » Wed Oct 23, 2019 7:35 am

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();

Newbie

Posts

Joined
Mon Mar 19, 2018 12:22 am
Who is online

Users browsing this forum: No registered users and 22 guests