CFv6 not sending email when file is attached

How to fix ChronoForms v6 not sending email when a file is attached.

Overview

The issue occurs because the email action configuration incorrectly references the file attachment field.
In the email action settings, ensure the 'Attachments' field is left empty when only one file is being uploaded, as the system automatically attaches uploaded files without requiring manual entry.

Answered
ChronoForms v6
ri ricardoc2 11 Jul, 2017
Hi,

I have 3 forms on a website, two of them have only text fields and are being sent the right way.
But one of the forms has the file upload element. I see the file in my server but i don't receive any email, the debug code shows this:


Array
(
    [chronoform] => form-formacao-pt
    [event] => submit
    [Nome] => asdsadas
    [email] => test@teste.com
    [file10] => 20170711092952_screenshot-at-jun-30-10-13-09.png
    [Mensagem] => test message test
    [enviar] => 
    [language] => pt-PT
    [Itemid] => 189
    [option] => com_content
    [lang] => pt-PT
    [view] => article
    [id] => 23
    [ark_inine_enabled] => 1
    [arkoption] => com_content
)
Array
(
    [upload9] => Array
        (
            [path] => /var/www/html/TBM/files/
            [cv] => Array
                (
                    [extensions] => Array
                        (
                            [0] => pdf
                            [1] => png
                            [2] => jpg
                        )

                    [info] => File is not present.
                )

            [file10] => Array
                (
                    [extensions] => Array
                        (
                            [0] => jpg
                            [1] => png
                            [2] => gif
                            [3] => pdf
                            [4] => doc
                            [5] => docx
                            [6] => txt
                            [7] => zip
                        )

                    [saved] => 1
                )

            [var] => Array
                (
                    [file10] => Array
                        (
                            [path] => /var/www/html/TBM/files/20170711092952_screenshot-at-jun-30-10-13-09.png
                            [filename] => 20170711092952_screenshot-at-jun-30-10-13-09.png
                            [name] => Screenshot at Jun 30 10-13-09.png
                            [size] => 164683
                        )

                )

        )

    [email2] => Array
        (
            [recipients] => Array
                (
                    [0] => ricardocostacoutinho@gmail.com
                )

            [subject] => TBM Website - Formulário de candidatura preenchida
            [body] => <h2>Nova candidatura recebida</h2>
<p>Foi preenchido o formulário de recrutamento na versão portuguesa com os seguintes dados:</p>
<table width="100%" cellpadding="5" cellspacing="3" border="0" class="ui table"><tr><td width="30%" valign="top" align="right"><strong>Nome</strong></td><td width="70%" valign="top" align="left">asdsadas</td></tr><tr><td width="30%" valign="top" align="right"><strong>Email</strong></td><td width="70%" valign="top" align="left">test@teste.com</td></tr><tr><td width="30%" valign="top" align="right"><strong>Mensagem</strong></td><td width="70%" valign="top" align="left">test message test</td></tr></table>
            [files] => Array
                (
                    [0] => field10
                    [1] => /var/www/html/TBM/files/20170711092952_screenshot-at-jun-30-10-13-09.png
                )

            [from_name] => TBM
            [from_email] => ricardocostacoutinho@gmail.com
            [reply_name] => TBM
            [reply_email] => ricardocostacoutinho@gmail.com
            [result] => the Mail could not be sent.
            [var] => 
        )

)



"the Mail could not be sent." but i can't understand why, the file is on my server and everything seems fine in my configurations. My configurations:

http://prntscr.com/fu90sx
http://prntscr.com/fu9124
http://prntscr.com/fu91bh
ri ricardoc2 11 Jul, 2017
Answer
Ok guys, it's solved.
For those who have the same problem, just do this:

http://prntscr.com/fua4rr

It is a stupid mistake, if it's just one file, we don't need to fill this textarea.
This topic is locked and no more replies can be posted.