Post by jan_00 » Sat Apr 21, 2012 4:12 am

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

New member

Posts

Joined
Sat Jan 07, 2012 4:19 pm

Post by dbassa » Sat Apr 21, 2012 5:23 am

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.

User avatar
Active Member

Posts

Joined
Tue May 19, 2009 12:11 am
Location - Spain

Post by jan_00 » Sat Apr 21, 2012 3:56 pm

hi dbassa
Thanks but this code dont work for me

New member

Posts

Joined
Sat Jan 07, 2012 4:19 pm
Who is online

Users browsing this forum: Bing [Bot] and 142 guests