View Single Post
  #10  
Old 02-01-2014, 01:14 AM
  Warwick's Avatar 
Warwick Warwick is offline
 

X-Adept
  
Join Date: Mar 2003
Location: Somewhere on the web through European connection
Posts: 868
 

Default Re: Adding a BCC email address to customer order completed

Quote:
Originally Posted by DavyMac
Can anyone tell me how to add an additional email address recipient to the customer's order complete email.

With this you mean the mail that is sent when the status of the order has been set to finished?
I am having a simular issue with a service like Trustpilot but the mail needs to be sent when the order status has been set to finished.

EDIT: overlooked the post before my post, which describes what I asked about.
Hopefully this works, anybody tried this?

ANOTHER EDIT: I got it working with 4.2.x
But then you need to change:
Code:
$myBcc = ( strpos($mail_message, '<!-- ORDER COMPLETE -->')===false ) ? '' : "Bcc: YOUR_ID@trustpilotservice.com".$lend; $headers = "From: ".$company_mail_from.$lend.$myBcc."X-Mailer: X-Cart".$lend."MIME-Version: 1.0".$lend.$message_header;

To:
Code:
$myBcc = ( strpos($mail_message, '<!-- ORDER COMPLETE -->')===false ) ? '' : "Bcc: YOUR_ID@trustpilotservice.com".$lend; $headers = "From: ".$mail_from.$lend.$myBcc."X-Mailer: X-Cart".$lend."MIME-Version: 1.0".$lend.$message_header;
(Note the change of .$company_mail_from. to .$mail_from.)
__________________
Installs: X-Cart 4.1.x - 4.4.x ∙∙ MySQL version: 5.0.45 ∙∙ Apache version: 2.2.8 (Unix) ∙∙ PHP version: 5.25
X-Cart add-ons: all ∙∙ Mods: A lot; too many ∙∙ Skin templates: Many
∙∙ Experience: Somewhere beyond newbie
-----------------------------------
------------------------------------------------------------------------------------------------------
Looking for the best dutch language pack? 4.1.x - 4.6.x compatibel, native speaker translation! More info
Reply With Quote