How to send copy email prestashop 1.7

How to send copy email prestashop 1.7


if you want to receive  all the messages that your shop sends you can add setBcc() function to mail::send class

step 1:

open classes/Mail.php

Step 2:

Search line $send = $swift->send($message);

And than Before :

add :

$message->setBcc(array('contact@yoursite.com'));

And all Messages send in your shop send copy to email contact@yoursite.com.


            /* Send mail */
            $message->setBcc(array('contact@infinicom.fr'));
            $message->setFrom(array($from => $fromName));
            $send = $swift->send($message);