Buy Now
Sign in

Include field value in TCPDF file name and attach PDF file to email

amheng5 , January 30 at 23:12
Answered
amheng5

Hi I've read the thread regarding how to create unique tcpdf files using field names and they are being saved correctly on the server; however now I can't find how to attach the unique/renamed tcpdf files to an email as each submission will create a unique pdf filename (in this case I added user last name as part of the file name.) see attached. However, I've searched can't determine the code to include in the email attachment section. Hope there is an easy solution.​

admin

Hi amheng5,

The pdf file path can be found in the TCPDF var info by adding a debug after the tcpdf, you can then include the path in the email attachments box:

{var:tcpdf_name.path}

Best regards

Max
If your main question got answered then please mark the answer using the button!​

Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!
amheng5
So this is what works for me.
TCPDF config:
Capture.PNG
​and attach PDF file to email config
Capture2.PNG
Attachments
Capture.PNG
Capture.PNG
(27.59 KiB)
29 Downloads/Views
Capture2.PNG
Capture2.PNG
(6.59 KiB)
17 Downloads/Views
Capture2.PNG
Capture2.PNG
(6.24 KiB)
15 Downloads/Views
Capture2.PNG
Capture2.PNG
(6.53 KiB)
30 Downloads/Views