我正在尝试在我们的IPN发送付款状态更新后发送电子邮件,并向客户发送电子邮件。我有以下代码
$file_attachement = null;
Mail::Send( (int)$email_order->id_lang,
'order_conf',
Mail::l('Order confirmation', (int)$email_order->id_lang),
null,
$email_customer->email,
$email_customer->firstname.' '.$email_customer->lastname,
null,
null,
$file_attachement,
null,
_PS_MAIL_DIR_, false, (int)$email_order->id_shop );
我收到以下错误
Missing '$template' parameter...smarty_internal_templatebase.php on line 177
order_conf
存在,我可以查看Advanced Parameters->Email
,并查看其尝试发送。
Prestashop版本是1.7.5.1
如果使用任何主题,请尝试将电子邮件模板(针对每种语言)复制到主题邮件目录。