Nov 16th, 2016, 2:28 PM
Thanks for the reply. I'm pretty new in using formtools. Do you mean directly inserting the script in "publish/THANKYOU PAGE CONTENT" (form builder module)?
It's this kind of script (month being a $ of the form):
I wanted to attach the file created directly with the email sent
It's this kind of script (month being a $ of the form):
Code:
<?php
require_once './PHPWord/PHPWord.php';
$PHPWord = new PHPWord();
$document = $PHPWord->loadTemplate('./Template/template.docx');
$document->setValue('Value1', 'month');
$document->save('./Contract/$month.docx');
?>
I wanted to attach the file created directly with the email sent