如何在prestashop 1.6中发送电子邮件之前先获取电子邮件内容

时间:2019-12-19 11:07:37

标签: php email prestashop prestashop-1.6

我在prestashop模块上工作,我想在prestashop发送邮件之前获取电子邮件内容,我尝试但是收到一个空的var 此功能使用模板

发送邮件
var xAxis =  [
{count: 0, month: "Jan 2019"},
{count: 7, month: "Dec 2019"},
{count: 0, month: "Feb 2019"},
{count: 0, month: "Jul 2019"}
] 

 xAxis.sort(function(a, b) {
  var c = new Date(a.month);
  console.log("TCL: CountByUserGraph -> makeApiCall -> c", c)
  // Chrome showing  ==> Tue Jan 01 2019 00:00:00 GMT+0530 
  //firefox showing  ==> Invalid Date
  var d = new Date(b.month);
  return c - d;
});

这是我的尝试:

quotesMailConfirm(
    'quotes_notify',
    $to,
    $tpl_message_vars,
    $this->module->l('Administrator offer', 'adminquotescontroller'),
    _PS_MODULE_DIR_ . $this->module->name . '/mails/',
    $this->context->language->id,
    $this->context->shop->id
);

0 个答案:

没有答案