I am getting crazy, with something very very easy.
This is the debug:
The links are correct...but if I add "firmato_email" in the field attachment of email events, it is not sending it.
Don't understand why, and I am sure it is something simple...π
$form->data['firmato_email']['path'] = JPATH_SITE . "/blablabla/" . $form->data['agg_pdf_firmato']['cf_pdf_file_firmato'];
$form->data['firmato_email']['name'] = $form->data['agg_pdf_firmato']['cf_pdf_file_firmato'];
$form->data['firmato_email']['link'] = JURI::root() . "images/firma_digitale/documenti_firmati/" . $form->data['agg_pdf_firmato']['cf_pdf_file_firmato'];
This is the debug:
[firmato_email] => Array
(
[path] => /home/blablabla/50659a85f45eCYaDY7N9tjmDuiiNgq2V.pdf
[name] => 50659a85f45eCYaDY7N9tjmDuiiNgq2V.pdf
[link] => http://www.blablabla.it/blablabla/50659a85f45eCYaDY7N9tjmDuiiNgq2V.pdf
The links are correct...but if I add "firmato_email" in the field attachment of email events, it is not sending it.
Don't understand why, and I am sure it is something simple...π