Page 1 of 1
Contact Form Email Address
Posted: Sat Apr 07, 2012 9:27 pm
by blackwebs
Hi,
I'd like to know if it is possible to change the recipient address of the contact form. My client would like sales orders to go to sales@ and enquiries to go to enquiries@
Thanks
Tom
Re: Contact Form Email Address
Posted: Sat Apr 07, 2012 9:44 pm
by MarketInSG
the admin panel
Re: Contact Form Email Address
Posted: Sun Apr 08, 2012 5:57 am
by rph
Unfortunately not. You have one email address for everything. It's a bit of an oversight in my opinion.
Re: Contact Form Email Address
Posted: Sun Apr 08, 2012 8:10 am
by mcamca
blackwebs wrote:Hi,
I'd like to know if it is possible to change the recipient address of the contact form. My client would like sales orders to go to sales@ and enquiries to go to enquiries@
Thanks
Tom
The correct way to achieve this is to create an additional database field, a new file in admin for the enquiries email to be entered and for contact.php and other files to be altered (suggest you put in a request for this to Daniel or Qphoria)
BUT:
A quick workaround is as follows:
For Orders:
In the control panel:
Admin/System/General
Set E-mail to the email address you want for orders eg:
sales@whatever.com
For Enquiries:
Change code in file at approx line 19 of:
catalog/controller/information/contact.php
Change from:
Code: Select all
$mail->setTo($this->config->get('config_email'));
Change to:
Code: Select all
$mail->setTo('enquiries@whatever.com');
Change
enquiries@whatever.com to the email address you want enquiries to go to.
If you upgrade Opencart version where contact.php is substituted you will have to do this again in the new file!
Re: Contact Form Email Address
Posted: Fri Apr 27, 2012 4:54 pm
by blackwebs
Thank you! Will give this a try...
Re: Contact Form Email Address
Posted: Thu Jun 19, 2014 10:53 pm
by CodeRed
The solution above worked perfectly to hard code the recipients address into the controller file. We were having an issue where we simply were not getting the e-mail from the contact us form. All of the e-mail addresses were setup correctly so this was a last resort and worked as explained.
OC v1.5.6.4