Hello,
I finally setted up TCPDF in order to create a pdf and save it to server.
NOw, ho can I attach it directly to the email that comes immediately after in the "on submit" action and show the link in the thanks page?
THanks
Matteo
I finally setted up TCPDF in order to create a pdf and save it to server.
NOw, ho can I attach it directly to the email that comes immediately after in the "on submit" action and show the link in the thanks page?
THanks
Matteo
Yes, but it's not a static file.
the action:
TCPDF
email
thanks message
THe TCpdf saves in /components/com_chronoforms/pdf/name_of_form
a file called: name_of_form_yyyy_mm_dd_hh_mm_ss.pdf ( timestamp of the moment when file is saved).
So it's variable...
the action:
TCPDF
thanks message
THe TCpdf saves in /components/com_chronoforms/pdf/name_of_form
a file called: name_of_form_yyyy_mm_dd_hh_mm_ss.pdf ( timestamp of the moment when file is saved).
So it's variable...
Hi Matteo,
Well, yes it is once you've created it. You need to modify the code in the FAQ to use your newly created file name and path.
Bob
Well, yes it is once you've created it. You need to modify the code in the FAQ to use your newly created file name and path.
Bob
Learn by doing!!!
For all are not so fit with coding, the solution is quite easy!!!
In TCPDF there is a field where you can put the array name.
In the email action GH ( download from the "GOD" greyhead page) there is a field where to put the array name.
That's it!!!!
Great.
A question now:
my for is pretty big ( a lot of fields) and looks like I cannot add any field anymore, it doesn't save the form.
But local machine works perfectly.
Any Idea?
Matteo
For all are not so fit with coding, the solution is quite easy!!!
In TCPDF there is a field where you can put the array name.
In the email action GH ( download from the "GOD" greyhead page) there is a field where to put the array name.
That's it!!!!
Great.
A question now:
my for is pretty big ( a lot of fields) and looks like I cannot add any field anymore, it doesn't save the form.
But local machine works perfectly.
Any Idea?
Matteo
I installed the Email [GH] action but where is the field to put in the array name? Is it the 'File Attachments' field? And what value do you put in there? Just the array name or the complete path combined with the array name? Both seem not to work here.
Hi Bob
I want to attach the freshly created pdf file to an email and send it. Sending the mail is no problem but there is no attachment to it.
If I put in the path and file name of an existing file it works perfect but with a dynamic file name it doesn't seem to work. I am doing something wrong but I can't find out what exactly.
I want to attach the freshly created pdf file to an email and send it. Sending the mail is no problem but there is no attachment to it.
If I put in the path and file name of an existing file it works perfect but with a dynamic file name it doesn't seem to work. I am doing something wrong but I can't find out what exactly.
Some more details...
The name of my form is testform1
I put in a 'HTML to PDF' action with the following details:
Document/File name = <left empty>
View = Save to server
Document save path = /var/www/vhosts/mywebsite/httpdocs/files
File name in Data/Files array: form1
When there is a document in the httpdocs/files directory called testform1_20130528152759.pdf I can put in the action 'Email [GH]' the value /var/www/vhosts/mywebsite/httpdocs/files/testform1_20130528152759.pdf in the Attachments field. This works fine.
But my question is what to fill in when using a dynamic document name?
And is there anything else to configure?
The name of my form is testform1
I put in a 'HTML to PDF' action with the following details:
Document/File name = <left empty>
View = Save to server
Document save path = /var/www/vhosts/mywebsite/httpdocs/files
File name in Data/Files array: form1
When there is a document in the httpdocs/files directory called testform1_20130528152759.pdf I can put in the action 'Email [GH]' the value /var/www/vhosts/mywebsite/httpdocs/files/testform1_20130528152759.pdf in the Attachments field. This works fine.
But my question is what to fill in when using a dynamic document name?
And is there anything else to configure?
This topic is locked and no more replies can be posted.