ChronoEngine.com homepage

Forums

Please write a review for the extension you are using on the Joomla extensions directory before posting a new question as we are being spammed by many negative reviews.

Thank you for your support!

Attach pdf to email

enzo.orsi 21 Feb, 2017
I am getting crazy, with something very very easy.

$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...😟
enzo.orsi 21 Feb, 2017
Answer
1 Likes
Solved with this:

https://www.chronoengine.com/faqs/3160-how-can-i-attach-a-file-i-have-created-to-an-email

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

2Checkout.com

2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for goods and services provided by ChronoEngine.com