Page 1 of 1

[MOD] Copy Contact Mail to Sender

Posted: Tue Sep 27, 2011 10:31 pm
by markman-b
I'm figuring out how to send a copy of the contactmail to the original sender.
In this case I can show a message on the contact/success page, like: "A copy of this message has been sent to your mailbox. Please check your spamfolder blablabla".

Sending a copy of the message, is also a confirmation that the sender has entered a valid emailadress.

Does anyone know how to fix this?

Re: Copy Contact Mail to Sender

Posted: Tue Sep 27, 2011 10:41 pm
by uksitebuilder
catalog/controller/information/contact.php

find

Code: Select all

$mail->setTo($this->config->get('config_email'));
change to

Code: Select all

$mail->setTo(array($this->config->get('config_email'), $this->request->post['email']));

Re: Copy Contact Mail to Sender

Posted: Tue Sep 27, 2011 10:46 pm
by markman-b
Many thanx! I envy your skills. It seems that OC has no secrets for you, isn't it? ;)

Re: Copy Contact Mail to Sender

Posted: Tue Sep 27, 2011 10:47 pm
by uksitebuilder
On the contrary, I'm learning every day

Re: [SOLVED] Copy Contact Mail to Sender

Posted: Tue Sep 27, 2011 11:49 pm
by i2Paq
Bookmarked!

Great solution and very professional.

Thanks uksitebuilder!

As this is now a [MOD] I have changed the title accordingly.

Re: Copy Contact Mail to Sender

Posted: Wed Sep 28, 2011 5:21 am
by Maansy
uksitebuilder wrote:On the contrary, I'm learning every day
That's what I call "top notch" attitude
I salute you Image

Re: [MOD] Copy Contact Mail to Sender

Posted: Thu Oct 27, 2011 6:24 pm
by joy
Great! This is useful. I implement this at my site also. :)