Jump to content

Recommended Posts

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
Link to comment
Share on other sites

  • 1 year later...
  • 1 year later...


 

 

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

);

 

Link to comment
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?

Link to comment
Share on other sites

×
×
  • Create New...