How to put a custom variable to email

tobisagt 18 Oct, 2012
I want to make a custom variable that i can use in my mail also.

Is that the way it goes?

$name = $form->data[name];
$form->data[greeting]; = 'Hello ' .$name;

This seems not to work for me.

I want to find a way to use {greeting} in my email template.
GreyHead 18 Oct, 2012
HI Tobisagt,

Either use this in a Custom Code action
$form->data['greeting'] = 'Hello ' .$form->data['name'];
or, in this case, put this in the Email template:
Hello {name},

This topic is locked and no more replies can be posted.