Forums

Action TCPDF : attach file to email with customize file name

M.Abletech 28 Aug, 2018
Hi,

I've used TCPDF action, with a customized file name:
<?php$form->data['pdf_file_name'] = 'Preventivo_IX_per'.'_'.$form->data['name'].'_'.date("Y-m-d_h:i:s");?>

What should I put in the attachment field in the email action?

This is the debugger with avalaible fields:

    [button-configuratore] => Calcola    [pdf_file_name] => Preventivo_IX_per_Miriam Monza_2018-08-27_06:49:09    [preventivo] => Preventivo_IX_per_Miriam Monza_2018-08-27_06:49:09.pdf    [pdf_link] => https://www.arxivar.it/components/com_chronoforms5/chronoforms/pdfs/config-IX-v5-fork1aggior13conARXFE/Preventivo_IX_per_Miriam Monza_2018-08-27_06:49:09.pdf    [pdf_link2] => <a href='https://www.arxivar.it/components/com_chronoforms5/chronoforms/pdfs/config-IX-v5-fork1aggior13conARXFE/Preventivo_IX_per_Miriam Monza_2018-08-27_06:49:09.pdf' >scarica</a>    )
Array(    [preventivo] => Array        (            [name] => Preventivo_IX_per_Miriam Monza_2018-08-27_06:49:09.pdf            [path] => /home/arxivar.it/public_html/components/com_chronoforms5/chronoforms/pdfs/config-IX-v5-fork1aggior13conARXFE/Preventivo_IX_per_Miriam Monza_2018-08-27_06:49:09.pdf            [size] => 0            [link] => /home/arxivar.it/public_html/components/com_chronoforms5/chronoforms/pdfs/config-IX-v5-fork1aggior13conARXFE/Preventivo_IX_per_Miriam Monza_2018-08-27_06:49:09.pdf        ))


I cannot make it works. Any advise?

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