evilopinions Posted September 5, 2014 Share Posted September 5, 2014 (edited) I have the following function $templateVars = array('{email}' => $customer->email, '{lastname}' => $customer->lastname, '{firstname}' =>$customer->firstname, '{order_name}' => $order->reference, '{date}' => $order->date_add, '{payment}' => $order->payment, '{total_products}' => $order->total_products_wt.$moneda, '{total_paid}' => $order->total_paid_tax_incl.$moneda, '{total_shipping}' => $order->total_shipping_tax_incl.$moneda, '{total_wrapping}' => $order->total_wrapping.$moneda, ----------------------------------------------- if (Validate::isEmail($customer->email)) { Mail::Send( (int)$order->id_lang, 'mailorderpdf', Mail::l('Order With PDF'), $templateVars, $customer->email, $customer->firstname.' '.$customer->lastname, null, null, $file_attachement, null, dirname(__FILE__).'/mails/', false, (int)$order->id_shop ); echo "Email has been sent\n"; I would like to BCC copy of each email to an address of the admin. How is this possible ? Edited September 5, 2014 by evilopinions (see edit history) Link to comment Share on other sites More sharing options...
tuk66 Posted September 5, 2014 Share Posted September 5, 2014 PrestaShop uses Swift library - http://swiftmailer.org Link to comment Share on other sites More sharing options...
bellini13 Posted September 5, 2014 Share Posted September 5, 2014 i believe you have 2 options 1) You can override the Mail class, and change the Send function so that everytime an email is sent, you send a second copy to yourself 2) You can change the same Send function, but this time you can implement the bcc functionality of Swift, by just adding your email address as a BCC Link to comment Share on other sites More sharing options...
Recommended Posts