Forums

Attachment shows up on server but not in mail

fabfrank 17 Apr, 2009
Hello,

I have checked everything as far as I know.
File namens match properly in the html and email templates
Email the results enabled
The server upload folder has chmod 777
The form itself is published
Enctype='multipart/form-data' included at the form tag
File uploads enabled with the proper code
Each email setting has attachements enabled

Still I don't recieve any attachents via email but only on the server.
Can someone please help?
I am using the latest version 3.1 RC4.11

website in Dutch http://www.tourdeventoux.com
mainmenu - verblijf/tip toevoegen - uw verblijf aanmelden

debug information

1. Form passed first SPAM check OK
2. Form passed the submissions limit (if enabled) OK
3. Form passed the Image verification (if enabled) OK
4. Form passed the server side validation (if enabled) OK
5. $_POST Array: Array ( [text_1] => henk [text_2] => [email]emailfr@km.nl[/email] [text_9] => eeee [text_10] => [radio0] => Vakantiehuis [5a8f53d54d07b8e1cd662c048e9cdbec] => 1 )
6. $_FILES Array: Array ( [file_5] => Array ( [name] => wimworm.png [type] => image/png [tmp_name] => /tmp/phpGvWOEU [error] => 0 [size] => 34993 ) [file_6] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [file_7] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) )
7. /storage/home/tourdeventoux.com/www/components/com_chronocontact/uploads/voegtoe/20090418001844_wimworm.png has been uploaded OK
8. Form passed the plugins step (if enabled) OK
9. An email has been SENT successfully from (henk)emailfr@km.nl to [email]info@tourdeventoux.com[/email]
10. Debug End
debug
Max_admin 18 Apr, 2009
Hi Frank,

The debug should show an email box with the email data and the files attached, can you show me a screen shot for the debug screen please ?

Regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
GreyHead 02 May, 2009
Hi pdw207,

There is no confirmation message for the email being sent in the DeBug info there. In the Forms Manager do you see Emails Enabled:1? If this is Ok and you are receiving emails then please check the Add attachments setting in the Email Setup.

Bob
fabfrank 17 May, 2009
I have solved my "own" problem.
It took me quiete a while.
I needed to follow a precise publishing order.
The first thing I did was setting up a new form using the form wizard (the easiest way).
I filled out all the information but skipped step 2 were you can ad the email settings.
I saved the form and entered the email settings and the rest of the neccesairy information through selecting the form from the form management side.
First the frist time I was able to receive the uploads via e-mail.
Notice that after I went back into the wizard just to change step 4 the after form submission the problem appeared again.
I hope that this is usefull to someone who's is trying to fix the same problem.
Is it a bug by the way?
Hope to hear from you :wink:
Kind regards,
Frank
Max_admin 18 May, 2009
Hi Frank,

I will test this with RC5.1 but I suggest you do the quick RC5 upgrade and retest and let us know, make sure you have clean browser cache after you install!

Cheers
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
cooperation 30 Sep, 2009
Hello,

Please I also need help in this issue.
I´ve got a test website where everything works.

But in the production website, there is no attachment in the emails.

File uploads works fine and all settings are checked twice.

I will attach the debug capture.

Please, if you see why its not working, I will be very happy to know why.

Thank you in advance
GreyHead 30 Sep, 2009
Hi cooperation,

Please check that the uploads folder is correct in the File Uploads tab (ChronoForms does not update it if you change sites) that the folder exists and has the correct permissions.

Bob
cooperation 30 Sep, 2009
Hello,

I have checked it again, the folder exists, the path os correct, I see the green text wich says :"writeable"

Also all attached files are uploaded and stored correctly, but there is no attachment.

Strange thing is, that I have the same site as a test site working on a subdomain, and there the email attach works perfect. Its just in the production sistem that it does not work.

What could be wrong???
GreyHead 30 Sep, 2009
Hi cooperation,

Next please check that you have Attachments enabled in the Email Setup Properties

Bob
cooperation 01 Oct, 2009
Hello,

OK, I go to the tab "setup emails"
I click the green border
and on the right, the last option "Enable Attachments:" is set to YES

The other settings are all set to YES
and the Email Format is: HTML

What else did I miss?
GreyHead 01 Oct, 2009
Hi cooperation,

As you've moved site - let's just double check that setting. Switch it to No, Apply the Setup and Save (or Apply) the form, then switch it back to Yes again and re-save. (It's possible for that drop-down to show Yes even though there is no actual value set.)

Bob
cooperation 01 Oct, 2009
It's to get crazy

I have now set all the options to "no"
saved the form
sent a test mail, and as expected, no email was sent

I then turned all values back to "yes"
saved the form
sent another test mail, and, email was sent without attachement

Next, I added a new email with the same setting but other email adress
Same result: email was sent without attachement

I am becoming desperate
GreyHead 01 Oct, 2009
Hi cooperation,

If the form is on-line and it's OK with you then please email or PM me a SuperAdmin login and the site url and I'll take a quick look.

Bob
GreyHead 01 Oct, 2009
Hi cooperation,

I think it's fixed.

In the end I believe that the problem is that you have FTP set to Yes in the site Global Configuration. This seems to cause the Joomla file uploader code to return a false error - that is, the file uploads successfuly but the function returns 'false'.

I've made a small hack in the code to add the file to the attachments array even if the error is shown.

Bob
cooperation 02 Oct, 2009
Hello Bob,

Thank you very much for your support!
Now everything works fine!

For further issues and other websites, the hack you made, where did you made it?

Are you going to but it in the next release?

Thank you again
GreyHead 02 Oct, 2009
Hi cooperation,

I've seen this once or twice before (or something similar) and usually the answer is to turn off FTP in the Global Configuration, it is rarely needed. In your case the config file is locked so I hacked the following block around line 121 of com_chronocontact/libraries/chronoformuploads.php to move the $attachments . . . line outside the if{ }
						if ( $fileok ) {
							//$uploadpath = $MyForm->formparams('uploadpath', JPATH_SITE.DS.'components'.DS.'com_chronocontact'.DS.'uploads'.DS.$MyForm->formrow->name.DS);
							$uploadedfile = JFile::upload($original_name, $uploadpath.$filename);
							$posted[$allowed_s2[0]] = $filename;
							JRequest::setVar($allowed_s2[0], $filename);
							$attachments[$allowed_s2[0]] = $uploadpath.$filename;
							if ( $uploadedfile ) {
								//$attachments[$allowed_s2[0]] = $uploadpath.$filename;
								$MyForm->addDebugMsg($uploadpath.$filename.' has been uploaded OK');
							}else{
								$MyForm->addDebugMsg($uploadpath.$filename.' has NOT been uploaded!!');
							}
						}

Bob
thomasjojo 07 Oct, 2009
this doesnt work for me.
Im desperate, i got this debug:

1. Form passed first SPAM check OK
2. Form passed the submissions limit (if enabled) OK
3. Form passed the Image verification (if enabled) OK
4. Form passed the server side validation (if enabled) OK
5. $_POST Array: Array ( [emne] => [email]xxxx@ventelo.no[/email] This e-mail address is being protected from spambots. You need JavaScript enabled to view it [navn] => baneTele [kundenr] => [adresse] => [postnr] => [poststed] => [telefon] => +66865100911 [epost] => [email]xxxxxx@ventelo.no[/email] [melding] => faen, jeg venter på support fra Chrengine [send] => Send henvendelse [105c13bb569ec7edd0a57806ae4cbfdc] => 1 [1cf1] => b7fb0651839c99029703ee8c13d0c9e7 [chronoformname] => commonKSprivat )
6. $_FILES Array: Array ( [fil2] => Array ( [name] => venteloBil.jpg [type] => image/jpeg [tmp_name] => /tmp/phpVvN9EX [error] => 0 [size] => 288407 ) )
7. Form passed the plugins step (if enabled) OK
8. An email has been SENT successfully from (baneTele)xxxxxxxxxxxxxx.no to [email]xxxxxxxx@gmail.com[/email], [email]xxxx@zzz.no[/email]
9. Debug End


But NO file in my email.
thomasjojo 07 Oct, 2009
that took me 4 hours to find out.

the form type file must have name and id = file_1 or so..

SOLVED -? maybe
GreyHead 07 Oct, 2009
Hi thomasajojo,

Not necessarily; the form input name (and possibly the id) must be the same as you have entered on the File Uploads tab though.

Bob
pankajnagarkoti86 12 Oct, 2009
I have this same problem. It looks like it uploads fine but is not included in the email
cooperation 27 Oct, 2009
Hello, again I need your help!

After upgrading to the last version I am getting the following error now:
* Warning! - Failed to move file.

I have checked file permission, file extensions and FTP upload is disabled.

Please, what did I miss?


Thank you very much
GreyHead 27 Oct, 2009
Hi cooperation,

It looks as though file upload isn't enabled. I can't tell much more from this info.

Bob
cooperation 27 Oct, 2009
Hello again,

Everything works fine. I just had to install the latest version of Chronoforms and actualize to the latest version of Joomla. Now it works.

Thank you very much
dplunkie 28 Jan, 2010
Hmmm, I'm having this problem now...attached image files not being uploaded when I use the confirmation plugin...
Joomla rel 1.5.15
Latest Chronoforms from website, with updated files from http://www.chronoengine.com/forums/index.php?option=com_chronoforums&cont=posts&f=9&t=15111#p40419 plus the adjustment of taking things outside the IF statement above.
File uploads set to yes in both Joomla and Chronoforms, FTP set to No.

The file does get uploaded to the server, I can physically see it there and debug says it is uploaded, but email does not include the file, just the file name. When I disable the confirmation plugin, the image does get attached to the email... We need the confirmation page so that people can read the rules and regulations and agree to the terms, but we also need the images...

debug from confirmation page:
1. Form passed first SPAM check OK
2. Form passed the submissions limit (if enabled) OK
3. Form passed the Image verification (if enabled) OK
4. Form passed the server side validation (if enabled) OK
5. $_POST Array: Array ( [country] => Canada [province] => AB [city] => Edmonton [formtype] => Individual [category] => A day in the life of [name] => Plunkie [email] => [email]dplunkie@autocan.ca[/email] [address] => SouthSide, yet again [phone] => 7807327165 [age] => 43 [message] => this is a test [website] => http://www.crosstownchrysler.com [position] => Webguy [button_10] => Submit [b4f39aff635b44ada72d84f4320170d4] => 1 [1cf1] => 1ee6f9200a1788e90ad700562e8291fb [chronoformname] => individual )
6. $_FILES Array: Array ( [image] => Array ( [name] => mmlogo.png [type] => image/png [tmp_name] => /tmp/phpWW1jiN [error] => 0 [size] => 70315 ) )
7. Upload routine started for file upload by : image
8. /xxxFilePathRemovedxxx/htdocs/components/com_chronocontact/uploads/individual/20100128141348_mmlogo.png has been uploaded OK
9. Form passed the plugins step (if enabled) OK

All looks good - and I see the file in the uploads directory

I then press the "I agree with the terms and conditions" [submit] button. The end of the email that it sends is:
Tell us why you would like to be considered: this is a test
Your Website: http://www.crosstownchrysler.com
Your Occupation: Webguy
Attach an image: 20100128141348_mmlogo.png

Submitted by 68.xxx.xx.xxx

Files:
[There is nothing after the Files: entry]

and the debug info is:
1. An email has been SENT successfully from (Merge Magazine Webmaster)webmaster@autocan.ca to [email]mktg@autocan.ca[/email]
2. Debug End
3. Redirect link set, click to test:
/component/content/article/25-thank-you.html

Any ideas how I can fix or where else I should look?
GreyHead 28 Jan, 2010
Hi dplunkie,

First please disable the Confirmation Page plugin for debugging - it has a bug that usually prevents any emails being sent so I'm surprised that yours are going.

Second please check that attachments are enabled on the Email Setup Properties tab.

Bob
dplunkie 29 Jan, 2010
Done. Disabled confirmation while debugging. Email setup is allowing attachments, and with confirmation disabled, the attachment comes through fine. With confirmation enabled, form comes through email, just no attachment... glad you're surprised that it comes through at all :-)
GreyHead 29 Jan, 2010
Hi dplunkie,

OK - It's on my list to take a look at the Confirmation Page plugin, I'll see if I can sort all this out.

Bob
rajasik11381 02 Feb, 2010
I have run into the same issue but as expected the e-mail is not received at all. I must have confirmation so this is the fix I am using till an update is available.lightbulb


1. Create an article and place the confirmation message inside it.
2. Publish the article to uncategorised.
3. Do a search for some of the text in the article in the front-end, copy the address of the article to 'Redirect URL:' in the general tab.
4. Make sure the confirmation plugin is disabled.

Works well for me! 😀
GregLone 30 Mar, 2010
I had the same problem today, and I managed to fix it.
I tryed all you said here but nothing appened. So MY solution was in phpmyadmin.

First, if you're not familiar with phpmyadmin, be carefull, I won't be responsible if you broke something uh!?😉
1 - connect to phpmyadmin.
2 - clic on your database name (on the left).
3 - clic on the "jos_chrono_contact_emails" table (on the left column). Now you see a table with "emailid", "formid", "to"...
4 - at the bottom of this table, clic on "check all", then clic on "see" (or whatever is written in english😉 ), but not "edit" or "erase" ^^. Now you see your forms.
5 - find your form and clic on the pen (to the left, on the same row) for editing it.
6 - then, scroll down to "params" and you have :
recordip=1
emailtype=html
enabled=1
editor=1
enable_attachments=0
If you have "enable_attachments=0", change it to "enable_attachments=1".
7 - apply the changements by clicking on the button and it's done.
8 - forgive me for my english😉

I don't know where the problem is, but it seems this param wasn't recorded properly.
I hope this could help someone.
shd 08 Jun, 2010
Hi Everyone,
I did the translation now with the title and that is working perfect. But it stays strange that the multi language is not working in this form. It is not an international site so the title solution is for this no problem.

Only the question that there is no attachment in the email is still a problem.

regards,
Stephanie
GreyHead 23 Jun, 2010
Hi ronaldgibson2k10,

There is no bug as far as I know. You do need to have valid entries in the Email Setup boxes and to click Apply in the Properties box.

The workaround posted by GregLone will work but is very probably bypassing some other problem.

Bob
Danilov 24 Jul, 2010
ich haben the same problem.

kein attach on email, aber auf server/component/..../formname/ die file war good.

ich hebe kein antworte gefunden.

und last meine bewegung war:

set properties auf folder /formname/ - 777:

read true
write true
execute true

und Alles gut!!! worked.

sorry fuer mein englich.
translate from deutsch to englich kan auf meine page:
linguaxtrem.at/ubersetzer.html
nml375 24 Jul, 2010
Hi Danilov,
Are you using the FTP client in Joomla?
This may sometimes report a non-success result although the upload routine worked just fine, causing ChronoForms to believe that the upload failed and cannot be attached.

If so, could you try disabling the FTP client?

/Fredrik
This topic is locked and no more replies can be posted.