Forums

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

amheng5 30 Jan, 2018
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.


Max_admin 31 Jan, 2018
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, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
amheng5 13 Feb, 2018
Answer
1 Likes
So this is what works for me.

TCPDF config:

and attach PDF file to email config

uriel 03 Mar, 2018
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 :
In the Success Tab, I created a File uploads section like this :


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?
uriel 03 Mar, 2018
I have also tried adding a TCPDF field like below but still not working :

Max_admin 03 Mar, 2018
Hi uriel,

what is exactly not working ? and your PDF content is empty!

Best regards
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
uriel 05 Mar, 2018
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?
uriel 05 Mar, 2018
Hey Guys!
Any light on this please? I need to fix this quite urgently please....
amheng5 05 Mar, 2018
By chance, did you turn on the highlighted option "attach to email"?

What is your email settings under Settings tab?
amheng5 06 Mar, 2018
You can also follow the demo example of an upload files. click on Demo button
and select "upload files" link.


follow the settings used for this demo form.
Max_admin 07 Mar, 2018
Hi uriel,

Please add this to the email attachments box:
{var:tcpdf7.path}
Best regards
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.

VPS & Email Hosting 20% discount

{item:title} {images:#}