Email a pdf

Hello,

I am figuring out how I can send a document when the form is submitted.
facturen = list
document = field which held the pdf name which has being uploaded.
directory = facturen which is in the root.

This is the code I try but didn't succeed :

$invoice = $this->data['facturen___document'];
$FileSend = 'facturen/'.$invoice;
$file[] = $FileSend;
return $file;
Also try this one , but also didn't succeed :
$invoice = $this->data['facturen___document'];
$FileSend = $invoice;
$file[] = $FileSend;
return $file;
 
For troubleshooting, have you checked what your variables actually contain like:

var_dump($yourvariable);
exit;
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top