Jump to content

Adding field "Reply-To" to module ps_emailalerts


Honya K.

Recommended Posts

Hello, I've been working on a confirmation email sent by the "ps_emailalerts" module after completing a new order. I need to insert the "reply-to" field into the e-mail and insert the customer's e-mail into it.

My point is that after receiving a confirmation email about a new order after clicking "reply" in Thunderbird, the recipient of the email is the customer, not my store.


Has anyone solved a similar thing?

Prestashop 1.7.6.2
Email Alerts 2.1.1

Link to comment
Share on other sites

Thanks for reply, you think like this (last three lines)?

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,
	$replyTo,
	$replyToName
	);

 

And $replyTo and $replayToName I should define in mail.php, isn't it?

Link to comment
Share on other sites

And here I am ending... 

I know that I must define customers email from sql table. Is that OK? I can't use those sql instances:(

$customers_email = Db::getInstance()->getValue('SELECT `email` FROM `' . _DB_PREFIX_ . 'customer` WHERE `id_customer` = `' . $params['email']->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...