Hi,
I'm new in prestashop development and I'm trying to develop a carrier module. I would like to send me an email through this hook actionOrderStatusPostUpdate but nothing happens.
I put the code below :
public function install()
{
return parent::install() && $this->registerHook('actionCarrierUpdate') && $this->registerHook('actionOrderStatusPostUpdate');
}
public function hookActionOrderStatusPostUpdate($params)
{
Mail::Send((int)Configuration::get('PS_LANG_DEFAULT'),'testmail', 'test email', array('{customer_firstname}' => 'Manu'), '
[email protected]', null, null, null, null, null, dirname(__FILE__).'/mails/');
}
I create the directory /mails/ and inside /fr/, /en/ with testmail.php and testmail.txt. I put the code below :
Hello {customer_firstname}
I don't know why I don't receive an email when an order is confirmed and paid.
Is it wrong that I use the mail function or use of the hook is not good ?
Thks
Manu