I made a duplicate of the 3 contact us files and I'm using it for another emailing purpose.
It works fine but when i receive an email, its addressed to me, and from the customer. (thats fine)
But in my email when i hit reply, it replies to my email, which is strange and annoying. It should reply to the email in the 'from' field shouldn't it?
So to try to fix the problem, i tried setting the reply to variable, but that desnt seem to have worked either. I didnt change anything else in the code.
Can anyone help?
$mail->setTo($this->config->get('config_email'));
$mail->setFrom($this->request->post['email']);
added this line
$mail->setReplyTo($this->request->post['email']);
$mail->setSender($this->request->post['name']);
$mail->setSubject(sprintf($this->language->get('email_subject'), $this->request->post['name']));
$mail->setText($this->request->post['enquiry']);
$mail->send();
I have also found that setReplyTo does not work in a similar case.
The reply-to address is appears in the message header but on clicking "reply" to an email formatted this way, the resulting new message is addressed to whatever address was configured as the "from" address.
I'd love to know if and how this can be solved.
The reply-to address is appears in the message header but on clicking "reply" to an email formatted this way, the resulting new message is addressed to whatever address was configured as the "from" address.
I'd love to know if and how this can be solved.
inframes.com Website Design with Opencart, Wordpress, Lucee and bespoke application design and development
Yes, I am also going through with the similar situation.
solution for OC 2.0.3
change this in system/libary/mail.php
if (!$this->reply_to) {
$header .= 'Reply-To: =?UTF-8?B?' . base64_encode($this->sender) . '?= <' . $this->from . '>' . PHP_EOL;
} else {
$header .= 'Reply-To: =?UTF-8?B?' . base64_encode($this->sender) . '?= <' . $this->reply_to. '>' . PHP_EOL;
}
change this in system/libary/mail.php
if (!$this->reply_to) {
$header .= 'Reply-To: =?UTF-8?B?' . base64_encode($this->sender) . '?= <' . $this->from . '>' . PHP_EOL;
} else {
$header .= 'Reply-To: =?UTF-8?B?' . base64_encode($this->sender) . '?= <' . $this->reply_to. '>' . PHP_EOL;
}
Who is online
Users browsing this forum: Bing [Bot] and 290 guests