Post by blackwebs » Sat Apr 07, 2012 9:27 pm

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

Newbie

Posts

Joined
Fri Mar 23, 2012 8:53 pm

User avatar
Guru Member

Posts

Joined
Wed Nov 16, 2011 11:53 am
Location - Singapore

Post by rph » Sun Apr 08, 2012 5:57 am

Unfortunately not. You have one email address for everything. It's a bit of an oversight in my opinion.

-Ryan


rph
Expert Member

Posts

Joined
Fri Jan 08, 2010 5:05 am
Location - Lincoln, Nebraska

Post by mcamca » Sun Apr 08, 2012 8:10 am

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!

Active Member

Posts

Joined
Fri Aug 06, 2010 5:57 pm

Post by blackwebs » Fri Apr 27, 2012 4:54 pm

Thank you! Will give this a try...

Newbie

Posts

Joined
Fri Mar 23, 2012 8:53 pm

Post by CodeRed » Thu Jun 19, 2014 10:53 pm

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

New member

Posts

Joined
Sat Nov 16, 2013 4:31 am
Who is online

Users browsing this forum: gunownergear and 10 guests