Jump to content

How can I receive a copy of order_conf emails


banan_44

Recommended Posts

Hello,

I want to receive an exact copy of order_conf emails that are sent to the customers  after purchase. Is it possible to do that? I am changing the template and the translation of the order confirmation emails and I want to verify if something is wrong with the email template. Creating a new order every time I make a small fix is annoying.

Link to comment
Share on other sites

There are really a lot of answers on the forum, it just wants to look for the right terms.
Just edit the function in ./classes/Mail.php
The parameters are in the Send function.

public static function send(
        $idLang,
        $template,
        $subject,
        $templateVars,
        $to,
        $toName = null,
        $from = null,
        $fromName = null,
        $fileAttachment = null,
        $mode_smtp = null,
        $templatePath = _PS_MAIL_DIR_,
        $die = false,
        $idShop = null,
        $bcc = null,
        $replyTo = null,
        $replyToName = null
    )

Just change the default value

$bcc = null,

to

$bcc = Configuration::get('PS_SHOP_EMAIL'),

or

$bcc = '[email protected]',

or

$bcc = '[email protected], [email protected]',

or

$bcc = Configuration::get('PS_SHOP_EMAIL').', [email protected], [email protected]',

etc.......

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...