Content E-mail plug-in

andrea76

New Member
I read http://fabrikar.com/forums/index.php?wiki/email-form-plugin/ but I'm very noob!
Text say: PHP/HTML Template - As default Fabrik will send a dump of all the data submitted by the form.

If PHP/HTML Template is empty, mail content is empty.
I try to use \plugins\fabrik_form\email\tmpl\test.php but mail is empty (probably wrong code).

How can I do to have last form submitted into mail content?
 
This problem also seems to occur with my application.
When i select an article to use as email base, all goes well. But when i use the message text field in combination with {content} or {template} empty mails are send. Also when i use a PHP template nothing will be added to the e-mail. Even when i user the default DEBUG.PHP example witch has the same code as described in http://fabrikar.com/forums/index.php?wiki/email-form-plugin/
 
Correction: I have now added an new PHP file with the following content and this is functioning:
Code:
<?php
// No direct access
defined('_JEXEC') or die('Restricted access');
 
$titleofthevena = 'This is an example';
 
echo '{content}';
echo '<br/><p>The following title is used <strong>';
echo $titleofthevena;
echo '</strong></p>'
?>

The code above is functioning, but when i use something to retrieve the id of the record i get the full object instead.

i have tried this:
Code:
echo '<br/>this data:';
echo $this->data['vena_reacties___vena_id'];
echo '<br/>curly:';
echo '{vena_reacties___vena_id}';
echo '<br/>Alleen de titel';
echo $this->data['vena_reacties___vena_id_raw'];
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top