hi all,
i have a problem with the email [gh] modul. i would send an email with more then one attachments. the files are on the server. the user can choose the files with a select box.
in the submit event i load the select-box-array and make the attachments-links (like /var/web/hp/file/xxx.xxx,/var/web/hp/file/xx2.xxx, etc.). this string comes in a form->data-hiddenbox. now i write this hiddenbox in the email [gh] - attachments options (like {hiddenbox})
the email comes to me, but without attachment. wenn i take the attachments-links from the debbuging-box and take this in the email[gh]-attachments-options, then i receive the email with attachment.
what make i wrong?
thanks
sorry for the bad english i hope you understand it.
i have a problem with the email [gh] modul. i would send an email with more then one attachments. the files are on the server. the user can choose the files with a select box.
in the submit event i load the select-box-array and make the attachments-links (like /var/web/hp/file/xxx.xxx,/var/web/hp/file/xx2.xxx, etc.). this string comes in a form->data-hiddenbox. now i write this hiddenbox in the email [gh] - attachments options (like {hiddenbox})
the email comes to me, but without attachment. wenn i take the attachments-links from the debbuging-box and take this in the email[gh]-attachments-options, then i receive the email with attachment.
what make i wrong?
thanks
sorry for the bad english i hope you understand it.
Hi Brani,
Please drag a Debugger action into the On Submit event, then submit the form and post the debug - including the 'dummy emails' results here.
Note: if you are using the Easy Wizard you may need to switch to the Advanced Wizard to do this; if you want to continue to use the Easy Wizard please make a copy of your form first and add the Debugger action to the copy.
Bob
Please drag a Debugger action into the On Submit event, then submit the form and post the debug - including the 'dummy emails' results here.
Note: if you are using the Easy Wizard you may need to switch to the Advanced Wizard to do this; if you want to continue to use the Easy Wizard please make a copy of your form first and add the Debugger action to the copy.
Bob
Data Array:
when i take the [hidanhang] results and write it manuelly in die attachments option then i become the files.
Array
(
[option] => com_chronoforms
[benutzerid] => 3
[objektid] => 1
[chronoform] => Braner_Makler_Sender2
[event] => submit
[Itemid] =>
[txtemail] => mail@braner-immobilien.de
[txtbetreff] => betreff
[txttext] =>
testtext
[cmbanhang] => Array
(
[0] => 20120802111524_wagner.pdf
[1] => 20120802111544_IMG_0642.JPG
[2] => 20120802112123_Tagesplan.pdf
)
[Abschicken] => Abschicken
[hidbenutzerid] => 3
[hidobjektid] => 1
[hidanhang] => /var/www/PFAD/20120802111524_wagner.pdf,/var/www/PFAD/20120802111544_IMG_0642.JPG,/var/www/PFAD/20120802112123_Tagesplan.pdf
[03e9e44174dc4183433a26ff8966287a] => 1
)
Validation Errors:
Array
(
)
Debug Data
Email info
Email sent successfully
From: (Braner Immobilien) kontakt@braner-immobilien.de
To: mail@braner-immobilien.de
Subject: betreff
Email body
testtext
---
email [gh] - File Attachment = {hidanhang}
when i take the [hidanhang] results and write it manuelly in die attachments option then i become the files.
Hi Brani,
The action can't handle a list of paths in a single form parameter like this. (I guess that it could be made to but I never thought about it.)
You can put each attachment into a separate form variable.
But if you have these is hidden inputs are they fixed values? If so then you can use /var/www/PFAD/20120802111524_wagner.pdf, /var/www/PFAD/20120802111544_IMG_0642.JPG, /var/www/PFAD/20120802112123_Tagesplan.pdf which you know works.
Bob
The action can't handle a list of paths in a single form parameter like this. (I guess that it could be made to but I never thought about it.)
You can put each attachment into a separate form variable.
[hidanhang1] => /var/www/PFAD/20120802111524_wagner.pdf,
[hidanhang2] => /var/www/PFAD/20120802111544_IMG_0642.JPG,
[hidanhang3] => /var/www/PFAD/20120802112123_Tagesplan.pdf
and use {hidanhang1},{hidanhang2},{hidanhang3}. That should work OK.But if you have these is hidden inputs are they fixed values? If so then you can use /var/www/PFAD/20120802111524_wagner.pdf, /var/www/PFAD/20120802111544_IMG_0642.JPG, /var/www/PFAD/20120802112123_Tagesplan.pdf which you know works.
Bob
the user can choose his files. so i must implement a dynamic system.
why i can write (manuel) more then one files in the file attachments string, but when i link it to a variable it not working .. mmhh.. 😢
why i can write (manuel) more then one files in the file attachments string, but when i link it to a variable it not working .. mmhh.. 😢
its dosent work, too ;(
perhaps its not work becouse the hidanhang1-3 variable is loaded in the submit-event?
perhaps its not work becouse the hidanhang1-3 variable is loaded in the submit-event?
This topic is locked and no more replies can be posted.