Page 1 of 1

how can i send confirm email in contact us??

Posted: Sat Apr 21, 2012 4:12 am
by jan_00
hi
i want to konw how can i send confirm email when a people use contact us in opencart??i want to send copy of mail in contact us send to the user ?

best regards

Re: how can i send confirm email in contact us??

Posted: Sat Apr 21, 2012 5:23 am
by dbassa
Hi jan,

Try this:

Go to catalog/controller/information/contact.php

Locate this line:

Code: Select all

$mail->send();
After this line add this code:

Code: Select all

$mail->setTo($this->request->post['email']);
$mail->setFrom($this->config->get('config_email'));
$mail->setSender($this->config->get('config_name'));
$mail->setSubject(html_entity_decode(sprintf($this->language->get('email_subject'), $this->request->post['name']), ENT_QUOTES, 'UTF-8'));
$mail->setText(strip_tags(html_entity_decode($this->request->post['enquiry'], ENT_QUOTES, 'UTF-8')));
$mail->send();
I don't know if this code works but, try it.

Re: how can i send confirm email in contact us??

Posted: Sat Apr 21, 2012 3:56 pm
by jan_00
hi dbassa
Thanks but this code dont work for me