Jump to content

Recommended Posts

Hi,

I want receive order notification from email customer (and not from shop e-mail) in order to reply quickly to customer.

can you help me?

thanks,

 

F

 

PS: I use Prestashop 1.4

Share this post


Link to post
Share on other sites

you're talking about order confirmation mail from mail alerts module?

Share this post


Link to post
Share on other sites

mailalerts.php 

there is a code like

				Mail::Send(
					$id_lang,
					$template,
					sprintf(Mail::l('New order - #%06d', $id_lang), $order->id),
					$template_vars,
					$merchant_mail,
					null,
					$configuration['PS_SHOP_EMAIL'],
					$configuration['PS_SHOP_NAME'],
					null,
					null,
					dirname(__FILE__).'/mails/',
					null,
					$id_shop
				);

try to change 

$configuration['PS_SHOP_EMAIL'], 

to

$customer->email

Share this post


Link to post
Share on other sites


 

 

how can i make the reply-to be the customer.

 

Mail::Send(

$id_lang,

$template,

sprintf(Mail::l('New order - #%06d', $id_lang), $order->id),

$template_vars,

$merchant_mail,

null,

$configuration['PS_SHOP_EMAIL'],

$configuration['PS_SHOP_NAME'],

null,

null,

dirname(__FILE__).'/mails/',

null,

$id_shop

);

 

Share this post


Link to post
Share on other sites

Works like a charm in prestashop 1.6.1.1

thanks!

Too bad the customer will not receive in their inbox.  This is the basics of SPAM and mail relay, and most modern software would either reject it or put it into a spam/junk folder.  You do not own the customers email address or domain, you should not be sending email from other peoples addresses...



how can i make the reply-to be the customer.

Mail::Send(
					$id_lang,
					$template,
					sprintf(Mail::l('New order - #%06d', $id_lang), $order->id),
					$template_vars,
					$merchant_mail,
					null,
					$configuration['PS_SHOP_EMAIL'],
					$configuration['PS_SHOP_NAME'],
					null,
					null,
					dirname(__FILE__).'/mails/',
					null,
					$id_shop
				);

What version of Prestashop?

Share this post


Link to post
Share on other sites

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More