The template is like this (rich text):
Bla bla blal
"$aUser = userInfo(@@USER_LOGGED);
$to = $aUser['mail'];
PMFSendMessage(@@APPLICATION, '[email protected]', $to, $to, '', 'Subject', 'template.html','', @=planDeEstDoc);
Neither variables are sent, on @=USER_LOGGED I only get an binary code, and the @= planDeEstDoc return an ID that isn't from the document output.
If someone could give me some help I would appreciate, cheers