Hi,
I was able to get file uploaded from the form to the server. But unable to solve how to attach it to the email, how should I do it?
The debugger reports the file name (the saved file unique name), also name of the file is in received email, but no attachment? (the form method is file).
Couple checkpoints:
1. Is this correct (in the File Attachments -field) input1, input2, file (the file is the input type file). I have tried both email and emailgh, and tried with {} and {#path#}.
2. Should the email -action be inside upload - OnSucces? I cannot save any action into this..
Is there any faq about this, like step by step?
Kind regards,
Buggy
Hi Buggy,
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 can turn on Debug on the Others tab.
Bob
Hi Buggy,
You need cv in the Attachments box (the name of the file upload input without quotes or brackets). Everything else looks OK.
Bob
Thank you!
I tried 'cv' in the field but I cannot get it to work.
In your video tutorial I can see in the debug that there is value in the array.
Mine is empty (array ( )), could this have something to do with the prob?
I'll try reinstalling later, now too busy to do all the forms again..
Hi Buggy,
Is the Upload Files action *before* the Email action in the event?
Bob
Hi Buggy,
Are the files uploading to the server OK? If you add a Debugger action you should be able to see.
Bob
Yes, the upload works just fine, but no attachment on email.
Okay I just figured out the problem.
When I use just fileupload field name in the 'Attachments fields name' in Email event, the mail has the file attached. like this: 'cv'
If I add any text input field to the 'Attachments fields name', I get no attachment, but the template is fine (other field(s) / text input).
Like this: 'field1, cv'.
Is this a bug? Or how I should create the email configuration so that I would get a email with the text values and with the attachment.
Kind regards, B
Hi Buggy,
Why on earth would you want to add the name of a text input to the Attachments box? (And if you do add more than one file input name, please use just a comma to separate with no space.)
Bob
Thank you Bob, your the best!
I dont how but somehow I have understood that all the fields should be written to that field, for the email template. So sorry about the trouble!
-Buggy-
Hi Buggy,
There are a few eccentric things in ChronoForms but most of the time the simplest solution is the right one.
Bob
Hi there,
ive the same problem.
Here the debug-info.
Data Array
Array
(
[option] => com_chronoforms5
[chronoform] => Initiativ_1
[event] => submit
[Itemid] =>
[Vorname] => Ronald
[Nachname] => Wegert
[Rufnummer] => 03491-889023
[Email] => wegwb@live.de
[filiale] => Dresden
[Nachricht] => v bcvbbcvb
[captcha] =>
[button8] => Absenden
[ip_address] => 94.139.27.119
)
Array
(
)
Errors
Array
(
)
Debug Info
Array
(
[4] => Array
(
[Email] => Array
(
[0] => An email with the details below was sent successfully:
[1] => To:info@wegwb.de
[2] => Subject:Eine Initiativbewerbung von spszeitarbeit.de
[3] => From name:keineAntwort@spszeitarbeit.de
[4] => From email:info@spszeitarbeit.de
[5] => Reply name:
[6] => Reply email:
[7] => Attachments:
[8] => Body:
<h3>Eine Initiativbewerbung ist von spszeitarbeit.de eingegangen</h3>
<p>Anbei die Daten:</p>
<table>
<tbody>
<tr>
<td>Vorname</td>
<td>Ronald</td>
</tr>
<tr>
<td>Nachname</td>
<td>Wegert</td>
</tr>
<tr>
<td>Rufnummer</td>
<td>03491-889023</td>
</tr>
<tr>
<td>Emailadresse</td>
<td>wegwb@live.de</td>
</tr>
<tr>
<td>Filiale</td>
<td>Dresden</td>
</tr>
<tr>
<td>Nachricht</td>
<td>v bcvbbcvb</td>
</tr>
</tbody>
</table>
<p> </p>
<p>Zu technischen Fragen steht Ihnen Herr Wegert unter 03491-889023 zur Verfügung.</p>
Poster's IP address:94.139.27.119
)
)
)
Hi wegwb,
A bit late answer, but it looks like you don't have an "upload files" action enabled and configured!
Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?