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)
271 Downloads/Views
Capture2.PNG
Capture2.PNG
(6.59 KiB)
152 Downloads/Views
Capture2.PNG
Capture2.PNG
(6.24 KiB)
149 Downloads/Views
Capture2.PNG
Capture2.PNG
(6.53 KiB)
262 Downloads/Views
U
uriel
Great thread thank you...
So in my case I don't need the unique names I simply need to attach the PDF to the email.
In the Designer Tab - I created a File upload field as per attached image :Screen_Shot_2018-03-03_at_10.10.34_AM.png
In the Success Tab, I created a File uploads section like this :
Screen_Shot_2018-03-03_at_10.13.46_AM.png
And the PDF is not attached in the email.....
Guys please can you assist me to get this to simply attach the uploaded PDF to the email sent?
Attachments
Screen_Shot_2018-03-03_at_10.10.34_AM.png
Screen_Shot_2018-03-03_at_10.10.34_AM.png
(66.61 KiB)
227 Downloads/Views
Screen_Shot_2018-03-03_at_10.13.46_AM.png
Screen_Shot_2018-03-03_at_10.13.46_AM.png
(46.77 KiB)
227 Downloads/Views
U
uriel
I have also tried adding a TCPDF field like below but still not working :
Screen_Shot_2018-03-03_at_10.46.12_AM.png
Attachments
Screen_Shot_2018-03-03_at_10.46.12_AM.png
Screen_Shot_2018-03-03_at_10.46.12_AM.png
(46.27 KiB)
225 Downloads/Views
admin
Hi uriel,
what is exactly not working ? and your PDF content is empty!
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!
U
uriel
The PDF is not attached in the email .
I don't know what else to put in the PDF Content - Please will you highlight to me what to do?
I added a TCPDF in an attempt to have the PDF attached to the email - Do I even need it?
U
uriel
Hey Guys!
Any light on this please? I need to fix this quite urgently please....
amheng5
By chance, did you turn on the highlighted option "attach to email"?
What is your email settings under Settings tab?Capture.PNG
Attachments
Capture.PNG
Capture.PNG
(46.51 KiB)
198 Downloads/Views
amheng5
You can also follow the demo example of an upload files. click on Demo button
Capture.PNGand select "upload files" link.
Capture2.PNG
follow the settings used for this demo form.
Attachments
Capture.PNG
Capture.PNG
(7.91 KiB)
195 Downloads/Views
Capture2.PNG
Capture2.PNG
(10.51 KiB)
192 Downloads/Views
admin
Hi uriel,
Please add this to the email attachments box:
{var:tcpdf7.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!