1. Fabrik 3.9 has been released. If you have updated Joomla to 3.9, this is a required update.
    Dismiss Notice

Email a pdf

Discussion in 'Community' started by Sylvain1969, Jun 27, 2020.

  1. Sylvain1969

    Sylvain1969 Member

    Level: Community
    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;
     
  2. juuser

    juuser Active Member

    Level: Community
    For troubleshooting, have you checked what your variables actually contain like:

    var_dump($yourvariable);
    exit;
     
    troester likes this.

Share This Page