Auto attach file fields doesn't work

primasrl 21 Feb, 2019
Hi,
how can you see in the attachment I have set "attach to email" in the field file and in the form for sending the email i have set "auto attach file fields".
But when in the frontend I send the request I recive one email without attachment.
I have found the attached file but I dont know why it is not sent by email.
How can i solve it?

Thanks,
Moreno
Max_admin 21 Feb, 2019
Hi Moreno,

Please add a debugger to your form and test it once, what output do you get from the debugger ?

Best regards
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
healyhatman 22 Feb, 2019
No, not that. You haven't shown anything.
primasrl 22 Feb, 2019
Array
(
    [chronoform] => su-misura
    [event] => submit
    [citta] => prova
    [provincia] => provap
    [cap] => 132
    [nome_azienda] => orvap
    [indirizzo] => orvpa
    [citta-azienda] => re
    [provincia-azienda] => tre
    [stato] => ert
    [nome_referente] => tre
    [mail] => AAAA@AAA.it
    [tel] => 234
    [dati-mail] => NO
    [privacy] => SI
    [g-recaptcha-response] => 03AOLTBLRsdOPrluA_3CLSS_Pm9V4B-ZmhSZdBsIuBUUUBZ--JBidaItXBQy7Lkitw
    [button44] => 
    [language] => it-IT
    [Itemid] => 209
    [option] => com_chronoforms6
    [lang] => it-IT
    [view] => form
    [disegno_tecnico] => Senza titolo-2.pdf
    [trattamento_ht] => SI
    [trattamento_essicato] => NO
    [quantitativo] => anno
    [quantita] => 34
    [richiesta_altre_informazioni] => sf 
    [button4] => 
)
Array
(
    [google_nocaptcha15] => Array
        (
            [response] => Array
                (
                    [success] => 1
                    [challenge_ts] => 2019-02-22T09:50:56Z
                    [hostname] => www.AAA.net
                )
            [_success] => The NoCaptcha verification was successfull.
            [var] => 1
        )
    [upload19] => Array
        (
            [path] => /web/htdocs/www.AAA.net/home/BBB/components/com_chronoforms6/chronoforms/uploads/
            [disegno_tecnico] => Array
                (
                    [extensions] => Array
                        (
                            [0] => jpg
                            [1] => jpeg
                            [2] => png
                            [3] => gif
                            [4] => pdf
                            [5] => doc
                            [6] => docx
                            [7] => txt
                            [8] => zip
                            [9] => rar
                        )
                    [info] => File is not present.
                )
            [var] => Array
                (
                )
        )
    [validate_fields2] => Array
        (
            [log] => Automatic validation enabled.
            [var] => 1
        )
    [email14] => Array
        (
            [recipients] => Array
                (
                    [0] => BBBB
                )
            [subject] => AAAA
            [body] => AAAA
            [result] => the Mail sent successfully.
            [var] => 1
        )
)
healyhatman 22 Feb, 2019
What does your file upload action look like, can you screenshot it?
primasrl 22 Feb, 2019
you can try it here: http://www.primapubblicita.net/sartorilegno/preventivo#palletsu-misura
primasrl 22 Feb, 2019
and here there is a backup: https://we.tl/t-DGvivZqwC7
primasrl 22 Feb, 2019
i have move the "upload files" inside page2 and now upload the file on the server.
but it is not attached to the email
healyhatman 22 Feb, 2019
Answer
1 Likes
OK so the upload action is in a different event than the email action? It's not going to work then.

Use a save to session action just AFTER your file upload action, data provider set to {var:upload#.[n].path} , just replace the # with the number of your upload action. Call it whatever you need to.

Then in the email attach field, put {session:sessionname}. Replace sessionname with whatever you called the session variable in the previous step.
primasrl 22 Feb, 2019
ok now it works!
thank you so much!
This topic is locked and no more replies can be posted.

VPS & Email Hosting 20% discount
hostinger