Jump to content

Reply-to in mailalerts


opionai

Recommended Posts


It is possible to add the client's email with this code to the Reply-to field

 

 

 

if ($dir_mail)

Mail::Send(

$mail_id_lang,

'new_order',

sprintf(Mail::l('New order : #%d - %s', $mail_id_lang), $order->id, $order->reference),

$template_vars,

$merchant_mail,

null,

$configuration['PS_SHOP_EMAIL'],

$configuration['PS_SHOP_NAME'],

null,

null,

$dir_mail,

null,

$id_shop

);

}

}

 

Link to comment
Share on other sites

  • 1 month later...

I figured it out, got it functional with this code:

if ($dir_mail)
                Mail::Send(
                    $mail_id_lang,
                    'new_order',
                    sprintf(Mail::l('New order : #%d - %s', $mail_id_lang), $order->id, $order->reference),
                    $template_vars,
                    $merchant_mail,
                    null,
                    $configuration['PS_SHOP_EMAIL'],
                    $configuration['PS_SHOP_NAME'],
                    null,
                    null,
                    $dir_mail,
                    null,
                    $id_shop,
                    null,
                    $customer->email
                );

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...