我目前正在创建一个模块,以在hookActionProductCancel上执行一组代码。模块运行良好,我想在执行后发送一封电子邮件。
$template_path = $this->local_path . 'mails/';
Mail::Send((int)(Configuration::get('PS_LANG_DEFAULT')),
'xxx', //need to change the template directory to point to custom module
'Subject',
array