As an object I would like to insert the php code in the body of the email.
Thank you
Thank you
Use a "Custom Code" element (available under the Basic tab), and set it to "Var only result".
You can use php code in it, it will capture all the echo's and everything and can then be included in the body of your email as {var:custom_code_name}

You can use php code in it, it will capture all the echo's and everything and can then be included in the body of your email as {var:custom_code_name}


Perfect I tried to do the same operation with the php action
but it did not work.
Thank you
but it did not work.
Thank you
Hi
I use a multi page form.
In Submit action I need to execute some PHP to get the correct data into email body.
In custom code (name: custom_test) I use:[pre]$test = $this->data['name'];
echo $test;[/pre]
In email body I use:
But I get no value in email body.
I guess
is wrong?
[br]
What is the correct way to get this data?
Thanks a lot.
I use a multi page form.
In Submit action I need to execute some PHP to get the correct data into email body.
In custom code (name: custom_test) I use:[pre]$test = $this->data['name'];
echo $test;[/pre]
In email body I use:
{var:custom_test}
But I get no value in email body.
I guess
$this->data['name']
is wrong?
[br]
What is the correct way to get this data?
Thanks a lot.
$this->data("field")It's a function now, not an array.
This topic is locked and no more replies can be posted.