Sending emails with Cc or Bcc to the shop

  • Posts: 4
  • Thank you received: 0
11 years 8 months ago #99071

Hi,

I woulkd like to know how can we receive in an email account of our website a copy of the emails that Hikashop send autyomaticaly to customers.

Thanks in advance!

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
11 years 8 months ago #99163

Hi,

To add an email as CC for each email sent to the customer , you can create a plugin based on the function "onBeforeMailSend()" to add the email as recipient.

The functions to add a recipient as CC or BCC are:
$mail->addBCC('This email address is being protected from spambots. You need JavaScript enabled to view it.');
or
$mail->addCC('This email address is being protected from spambots. You need JavaScript enabled to view it.');

Use: $mail = hikashop_get('class.mail'); to load the $mail object.

www.hikashop.com/fr/support/documentatio...tml#onBeforeMailSend

Last edit: 11 years 8 months ago by Xavier.

Please Log in or Create an account to join the conversation.

Time to create page: 0.067 seconds
Powered by Kunena Forum