How to send attachments to e-mail?

sillesco 13 Jan, 2014
This is my configuration, what I have wrong?


How to send attachments to e-mail? image 1



And this is my e-mail

How to send attachments to e-mail? image 2

And this is my bug fixes

Warning: array_values() expects parameter 1 to be array, null given in /home/minombredeusuario/public_html/administrator/components/com_chronoforms/form_actions/email/email.php on line 205

Warning: Invalid argument supplied for foreach() in /home/minombredeusuario/public_html/administrator/components/com_chronoforms/form_actions/email/email.php on line 206

Warning: array_values() expects parameter 1 to be array, null given in /home/minombredeusuario/public_html/administrator/components/com_chronoforms/form_actions/email/email.php on line 205

Warning: Invalid argument supplied for foreach() in /home/minombredeusuario/public_html/administrator/components/com_chronoforms/form_actions/email/email.php on line 206


Data Array:

Array
(
    [option] => com_chronoforms
    [chronoform] => Enviar_aporte
    [event] => submit
    [input_textarea_2] => bhb
    [input_select_4] => No
    [file_upload] => 20140110214831_Sin ttulo2.jpg
    [input_submit_6] => Enviar
    [6e7c1db473b671eeb1ff67dec58bb0ad] => 1
    [_PLUGINS_] => Array
        (
            [upload_files] => Array
                (
                    [file_upload] => Array
                        (
                            [name] => 20140110214831_Sin ttulo2.jpg
                            [original_name] => Sin ttulo2.jpg
                            [path] => /home/minombredeusuario/public_html/components/com_chronoforms/uploads/Enviar_aporte/20140110214831_Sin ttulo2.jpg
                            [size] => 69249
                            [link] => http://www.miweb.es/components/com_chronoforms/uploads/Enviar_aporte/20140110214831_Sin ttulo2.jpg
                        )

                )

        )

)

Validation Errors:

Array
(
)

¡Gracias por enviar tu aportación!
Debug Data

    Upload routine started for file upload by : file_upload
    /home/minombredeusuario/public_html/components/com_chronoforms/uploads/Enviar_aporte/20140110214831_Sin ttulo2.jpg has been uploaded successfully.
    email
        8
            Result An email has been SENT successfully from (Mi dominio)micorreo@es to miotrocorreo@es
            Body
            {ReCaptcha}
            Nota 	bhb
            ¿Eres tú? 	No
            Imagen 	{input_file_5}


            Submitted by mi IP
            Attachments array ( )





PS: sorry for the language, I am a Spanish using google translator. Please Make use simple vocabulary. Thanks
sillesco 13 Jan, 2014
I've read the text, but the form is still not working
GreyHead 13 Jan, 2014
Hi Hi sillesco,

a) I notice that there is a space in the file name, that might be a problem (but probably isn't)

b) I notice that you haven’t updated the name of the file upload input in the Email template.

c) What do you have in the Attachments box of the Email action?

Bob
sillesco 13 Jan, 2014
Hi

I change:

a) "enviar_aporte" to "enviaraaporte"
b)Form metod "post" to "file"
c)Auto-generate template
d) "upload_file" to "upload_file_1"
e)In Attachments fields name, I put: "file_upload_1:jpg-png-gif-zip-rar," Do you mean that? and was this before, it shows in the picture. Sorry for my bad English
f) Send as "both" to "html"


And these are the results

a)Email.

Nota ksadasd
¿Eres tú? No
Imagen 20140113161858_11000689654_0fdfd9c6ee_m.jpg


Submitted by MY IP

B)Error



Warning: array_values() expects parameter 1 to be array, string given in /home/MINOMBREUSUARIO/public_html/administrator/components/com_chronoforms/form_actions/upload_files/upload_files.php on line 71

Warning: array_values() expects parameter 1 to be array, null given in /home/MINOMBREUSUARIO/public_html/administrator/components/com_chronoforms/form_actions/email/email.php on line 205

Warning: Invalid argument supplied for foreach() in /home/MINOMBREUSUARIO/public_html/administrator/components/com_chronoforms/form_actions/email/email.php on line 206

Warning: array_values() expects parameter 1 to be array, null given in /home/MINOMBREUSUARIO/public_html/administrator/components/com_chronoforms/form_actions/email/email.php on line 205

Warning: Invalid argument supplied for foreach() in /home/MINOMBREUSUARIO/public_html/administrator/components/com_chronoforms/form_actions/email/email.php on line 206
Data Array:

Array
(
    [option] => com_chronoforms
    [chronoform] => Enviaraaporte
    [event] => submit
    [input_textarea_2] => ksadasd
    [input_select_4] => No
    [file_upload_1] => 20140113161858_11000689654_0fdfd9c6ee_m.jpg
    [input_submit_6] => Enviar
    [6f58a861d47a72d6a8f361f6e2eaf32d] => 1
    [_PLUGINS_] => Array
        (
            [upload_files] => Array
                (
                    [file_upload_1] => Array
                        (
                            [name] => 20140113161858_11000689654_0fdfd9c6ee_m.jpg
                            [original_name] => 11000689654_0fdfd9c6ee_m.jpg
                            [path] => /home/MINOMBREUSUARIO/public_html/components/com_chronoforms/uploads/Enviaraaporte/20140113161858_11000689654_0fdfd9c6ee_m.jpg
                            [size] => 18554
                            [link] => http://www.MIWEBs/components/com_chronoforms/uploads/Enviaraaporte/20140113161858_11000689654_0fdfd9c6ee_m.jpg
                        )

                )

        )

)

Validation Errors:

Array
(
)

¡Gracias por enviar tu aportación!
Debug Data

    Upload routine started for file upload by : file_upload_1
    /home/MINOMBREUSUARIO/public_html/components/com_chronoforms/uploads/Enviaraaporte/20140113161858_11000689654_0fdfd9c6ee_m.jpg has been uploaded successfully.
    email
        8
            Result An email has been SENT successfully from (Mi dominio)oEMAIL@fEMAIL.es to EMAIL@EMAIL.es
            Body
            Nota 	ksadasd
            ¿Eres tú? 	No
            Imagen 	20140113161858_11000689654_0fdfd9c6ee_m.jpg


            Submitted by MY IP
            Attachments array ( )



Thanks for everything, this is important to me
GreyHead 13 Jan, 2014
Hi sillesco,

b)Form metod "post" to "file"

Please change this back to post - that is correct.

What do you have in the Attachments box in the Email action. The entry you posted was from the Upload Files action.

Bob
sillesco 13 Jan, 2014
Hi


Sorry, I do not understand correctly

For "box in the Email Attachments action" I understand the following:

Actions> E-Mail-configure icon> General


This


How to send attachments to e-mail? image 3


Is it right? What you mean?
GreyHead 14 Jan, 2014
Hi sillesco,

But all you need there is the input name file_upload_1

Bib
sillesco 16 Jan, 2014
I do that you say does not work. What can be wrong?
GreyHead 16 Jan, 2014
Hi sillesco,

What do you have in the Attachments box in the Email action?

What do you see in the Debugger output?

Bob
sillesco 17 Jan, 2014
Do I have to create a database?

 Warning: array_values() expects parameter 1 to be array, string given in /home/MYUSER/public_html/administrator/components/com_chronoforms/form_actions/upload_files/upload_files.php on line 71

Warning: array_values() expects parameter 1 to be array, null given in /home/MYUSER/public_html/administrator/components/com_chronoforms/form_actions/email/email.php on line 205

Warning: Invalid argument supplied for foreach() in /home/MYUSER/public_html/administrator/components/com_chronoforms/form_actions/email/email.php on line 206

Warning: array_values() expects parameter 1 to be array, null given in /home/MYUSER/public_html/administrator/components/com_chronoforms/form_actions/email/email.php on line 205

Warning: Invalid argument supplied for foreach() in /home/MYUSER/public_html/administrator/components/com_chronoforms/form_actions/email/email.php on line 206
Data Array:

Array
(
    [option] => com_chronoforms
    [chronoform] => Enviaraaporte
    [event] => submit
    [input_textarea_2] => sdfdsfsdf
    [input_select_4] => No
    [file_upload_1] => 20140117011623_11000689654_0fdfd9c6ee_m.jpg
    [input_submit_6] => Enviar
    [e10f055f6c0599a108627e707ce7f967] => 1
    [_PLUGINS_] => Array
        (
            [upload_files] => Array
                (
                    [file_upload_1] => Array
                        (
                            [name] => 20140117011623_11000689654_0fdfd9c6ee_m.jpg
                            [original_name] => 11000689654_0fdfd9c6ee_m.jpg
                            [path] => /home/MYUSER/public_html/components/com_chronoforms/uploads/Enviaraaporte/20140117011623_11000689654_0fdfd9c6ee_m.jpg
                            [size] => 18554
                            [link] => http://www.fapfapfap.es/components/com_chronoforms/uploads/Enviaraaporte/20140117011623_11000689654_0fdfd9c6ee_m.jpg
                        )

                )

        )

)

Validation Errors:

Array
(
)

¡Gracias por enviar tu aportación!
Debug Data

    Upload routine started for file upload by : file_upload_1
    /home/MYUSER/public_html/components/com_chronoforms/uploads/Enviaraaporte/20140117011623_11000689654_0fdfd9c6ee_m.jpg has been uploaded successfully.
    email
        8
            Result An email has been SENT successfully from (Mi dominio)otros@es to correo@es
            Body
            Nota 	sdfdsfsdf
            ¿Eres tú? 	No
            Imagen 	20140117011623_11000689654_0fdfd9c6ee_m.jpg


            Submitted by MI IP
            Attachments array ( )




How to send attachments to e-mail? image 4

Thanks
GreyHead 17 Jan, 2014
HI sillesco,

You don't need to create a database table unless you want to save the form results.

You do need to read the FAQ and my posts carefully.

But all you need there is the input name file_upload_1


Bob
sillesco 21 Jan, 2014
Sorry, did not read well.

I have already made ​​the switch, now the error code has changed but still does not work.


 Data Array: 
Array
(
    [option] => com_chronoforms
    [chronoform] => Enviaraaporte
    [event] => submit
    [input_textarea_2] => sadasd
    [input_select_4] => No
    [file_upload_1] => 
    [input_submit_6] => Enviar
    [b0cad7f9d983558a8a1f4e77c6b5ac04] => 1
    [_PLUGINS_] => Array
        (
            [upload_files] => Array
                (
                )

        )

)
Validation Errors: 
Array
(
)
¡Gracias por enviar tu aportación! Debug Data
email
8
Result
An email has been SENT successfully from (Mi dominio)otros@es to material@.es
Body
Nota	 sadasd
¿Eres tú?	 No
Imagen	


Submitted by MY IP
Attachments
array ( )

sillesco 21 Jan, 2014
[attachment=0]Sin título.png[/attachment]
sillesco 21 Jan, 2014
Am, had now occurred that had put in the wrong field. Everything is correct, it is amazing.

thank you very much
sillesco 21 Jan, 2014
Answer
/home/MYNOMBREUSUARIO/public_html/components/com_chronoforms/uploads/Enviaraaporte/20140121114116_11000689654_0fdfd9c6ee_m.jpg has-been successfully uploaded.

But I have a little problem. How do I get the files I upload to my hosting? only to e-MAIL
sillesco 21 Jan, 2014
NO to my hosting, mail only. I do not want the ones in the file hosting


Sorry, with the new system I know not edit posts
GreyHead 30 Apr, 2014
Hi sillesco,

Replying to a very old post ;-(

You have to upload the file to the server to attach it to your email. If you don't want to keep it then you need to delete it after the email is sent. I think that one of the FAQs has some code to do this.

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