Jump to content

Template vars on Mail::send function not working


Recommended Posts

Hey i have this code to send an email when a customer is added trough webservice


$data = array(
    '{firstname}' => (string)$customer->firstname,
    '{lastname}' => (string)$customer->lastname,
    '{email}' => (string)$utilizador->Email,
    '{passwd}' => (string)$utilizador->Password,
    '{shop_name}' => 'BikeZone',
    '{shop_url}' => 'http://maggpresta.atomsrv.com'

$dump = Mail::Send(2, 'account', 'Criação de conta de cliente', $data, $utilizador->Email, $customer->firstname.' '.$customer->lastname, null, null, null, null,_PS_MAIL_DIR_, true, 1, false);


And it's working. The email is sent but the template vars are all empty as you can see on the attachment.


Did anyone got the same problem? How can i solve it?




Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...