in my send function (mail)
$products= $this->context->cart->getProducts();
$vars=[
'{products}' =>$products
];
return Mail::send(
$idLang=1,
$template="example",
$subject="some thing",
$templateVars= $vars ,
$to=$toe,
null,
null,
null,
null,
null,
_PS_MODULE_DIR_ . $this->name . '/mails/'
);
in my mails directory =>en
i have example.html and example.txt
how can i loop throw the products? in thows files
i tried to add example.tpl but that not working