title: Template vars on Mail::send PrestaShop
body: <p>I have this code to send an email when a customer is added through Web Service</p>
  
  <pre><code>$data = array(
  '{firstname}' =&gt; (string)$customer-&gt;firstname,
  '{lastname}' =&gt; (string)$customer-&gt;lastname,
  '{email}' =&gt; (string)$utilizador-&gt;Email,
  '{passwd}' =&gt; (string)$utilizador-&gt;Password,
  '{shop_name}' =&gt; 'BikeZone',
  '{shop_url}' =&gt; 'http://maggpresta.atomsrv.com'
  );
  
  $dump = Mail::Send(2, 'account', 'Criação de conta de cliente', $data,
                     $utilizador-&gt;Email,   $customer-&gt;firstname.' '.$customer-&gt;lastname,
                     null, null, null, null,_PS_MAIL_DIR_, true, 1, false);
  </code></pre>
  
  <p>And it's working. The email is sent but the template vars are all empty as you can see in this image.</p>
  
  <p><img src="https://i.stack.imgur.com/IxVt8.png" alt="Prestashop empty template vars"></p>
  
  <p>Did anyone got the same problem? How can i solve it?</p>