Advertisement:

Author Topic: [SOLVED] Receiving copy of contact email  (Read 2184 times)

Sergio Morais

  • Jr. Member
  • **
  • Posts: 51
[SOLVED] Receiving copy of contact email
« on: October 07, 2015, 12:49:30 am »
Hi,

Any way to get the potential "buyer" to receive a copy of the contact email sent to the seller?

For e.g., When I contact somebody via the "Contact the seller" button, asking for more information, I would like to receive a copy of that email...

« Last Edit: October 28, 2015, 02:08:25 pm by Sergio Morais »

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: Receiving copy of contact email
« Reply #1 on: October 07, 2015, 01:35:17 pm »
Hi,

Add this at the very bottom of your theme functions.php:
Notes:
1.- Take care not to leave blank lines after this.
2.- If your theme functions.php doesn't end with ?> skip first line of my code.

Code: [Select]
<?php
function cust_item_inquiry_sender_copy($mail) {

    if (
Params::getParam('action') == 'contact_post'$mail->AddBCC(Params::getParam('yourEmail'));  
    return 
$mail;
}

osc_add_filter('init_send_mail''cust_item_inquiry_sender_copy');
?>


Regards

Sergio Morais

  • Jr. Member
  • **
  • Posts: 51
Re: Receiving copy of contact email
« Reply #2 on: October 28, 2015, 02:00:11 pm »
@teseo
Sorry for the delay in answering.
This worked.
Thanks.

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: [SOLVED] Receiving copy of contact email
« Reply #3 on: October 29, 2015, 09:02:59 pm »
You're welcome. :)

Regards

giannimini

  • Newbie
  • *
  • Posts: 3
Re: Receiving copy of contact email
« Reply #4 on: June 30, 2019, 04:39:23 pm »
Hi,

Add this at the very bottom of your theme functions.php:
Notes:
1.- Take care not to leave blank lines after this.
2.- If your theme functions.php doesn't end with ?> skip first line of my code.

Code: [Select]
<?php
function cust_item_inquiry_sender_copy($mail) {

    if (
Params::getParam('action') == 'contact_post'$mail->AddBCC(Params::getParam('yourEmail'));  
    return 
$mail;
}

osc_add_filter('init_send_mail''cust_item_inquiry_sender_copy');
?>


Regards

I have same problem. Can you write the soluzione for this problem Better? Because I try and dont't work (for my errore) I don't solve the problem


giannimini

  • Newbie
  • *
  • Posts: 3
Re: [SOLVED] Receiving copy of contact email
« Reply #5 on: June 30, 2019, 04:50:21 pm »
I try in this moment and this work! thanks youuuuu  :) :) :) :) :) :) :) :)