Honya K. Posted March 10, 2021 Share Posted March 10, 2021 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 More sharing options...
Guest Posted March 10, 2021 Share Posted March 10, 2021 (edited) . Edited July 26, 2021 by Guest (see edit history) Link to comment Share on other sites More sharing options...
Honya K. Posted March 10, 2021 Author Share Posted March 10, 2021 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 More sharing options...
Guest Posted March 10, 2021 Share Posted March 10, 2021 (edited) . Edited July 26, 2021 by Guest (see edit history) Link to comment Share on other sites More sharing options...
Honya K. Posted March 10, 2021 Author Share Posted March 10, 2021 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 More sharing options...
Guest Posted March 10, 2021 Share Posted March 10, 2021 (edited) . Edited July 26, 2021 by Guest (see edit history) Link to comment Share on other sites More sharing options...
Honya K. Posted March 10, 2021 Author Share Posted March 10, 2021 But $configuration['PS_SHOP_EMAIL'] is email of my shop, not customers mail, or? Link to comment Share on other sites More sharing options...
Guest Posted March 10, 2021 Share Posted March 10, 2021 (edited) . Edited July 26, 2021 by Guest (see edit history) Link to comment Share on other sites More sharing options...
Honya K. Posted March 10, 2021 Author Share Posted March 10, 2021 (edited) Sorry, re-post ps_emailalerts.php Edited March 10, 2021 by Honya K. (see edit history) Link to comment Share on other sites More sharing options...
Guest Posted March 10, 2021 Share Posted March 10, 2021 (edited) . Edited July 26, 2021 by Guest (see edit history) Link to comment Share on other sites More sharing options...
Honya K. Posted March 10, 2021 Author Share Posted March 10, 2021 You are God like 🤙 Link to comment Share on other sites More sharing options...
Guest Posted March 10, 2021 Share Posted March 10, 2021 (edited) . Edited July 26, 2021 by Guest (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now