Can't get files to attach to email

tompelletier 13 Jan, 2016
I can't seem to figure out how to get files to attach to the email. The email lists the filename and I can find the files in the directory, but they won't attach to the email. I'd also be happy if I could just get a link to the file, but I can't figure out how that is done. I've tried looking at other posts in this forum on this topic and haven't had any luck.

Here is the debug info:
Array
(
    [option] => com_chronoforms5
    [chronoform] => SubmitNews
    [event] => submit
    [Name] => TomPelletier
    [Email] => tom@tompelletier.com
    [Date] => 01-20-2016
    [DaytimePhone] => 6315695552
    [EveningPhone] => 6315695552
    [Media] => Newsletter,Supplement
    [News] => News
    [Comments] => Comment
    [submit] => Submit
    [id] => 12
    [attachfile] => 20160113153543_test.doc
    [ip_address] => 68.196.203.224
)
Array
(
    [attachfile] => Array
        (
            [name] => 20160113153543_test.doc
            [original_name] => test.doc
            [path] => /home/uufsb/public_html/components/com_chronoforms5/chronoforms/uploads/SubmitNews/20160113153543_test.doc
            [size] => 26112
            [link] => http://uufsb.org/components/com_chronoforms5/chronoforms/uploads/SubmitNews/20160113153543_test.doc
        )

)
Errors
Array
(
)
Debug Info
Array
(
    [11] => Array
        (
            [DB Save] => Array
                (
                    [Queries] => Array
                        (
                            [0] => INSERT INTO `j17_chronoengine_chronoforms_datatable_SubmitNews` (`Name`, `Email`, `Date`, `DaytimePhone`, `EveningPhone`, `Media`, `News`, `Comments`, `submit`, `user_id`, `uniq_id`, `created`) values ('TomPelletier', 'tom@tompelletier.com', '01-20-2016', '6315695552', '6315695552', 'Newsletter,Supplement', 'News', 'Comment', 'Submit', '0', 'ee9264b96388ed64bb170b0774fced887b921313', '2016-01-13 15:35:43');
                        )

                )

        )

    [9] => Array
        (
            [Files Upload] => Array
                (
                    [0] => Upload routine started for file upload by : attachfile
                    [1] => /home/uufsb/public_html/components/com_chronoforms5/chronoforms/uploads/SubmitNews/20160113153543_test.doc has been uploaded successfully.
                )

        )

    [1] => Array
        (
            [Email] => Array
                (
                    [0] => An email with the details below was sent successfully:
                    [1] => To:, tom@tompelletier.com
                    [2] => Subject:Confirmation of your UUFSB News submission
                    [3] => From name:
                    [4] => From email:
                    [5] => CC:
                    [6] => BCC:
                    [7] => Reply name:uufsbnews
                    [8] => Reply email:uufsbnews@uufsb.org
                    [9] => Attachments:
                    [10] => Array
                        (
                        )

                    [11] => Body:
<table>
<tr><td>Name:</td><td>TomPelletier</td></tr>
<tr><td>Email:</td><td>tom@tompelletier.com</td></tr>
<tr><td>Date:</td><td>01-20-2016</td></tr>
<tr><td>Daytime Phone:</td><td>6315695552</td></tr>
<tr><td>Evening Phone:</td><td>6315695552</td></tr>
<tr><td>Media:</td><td>Newsletter,Supplement</td></tr>
<tr><td>News:</td><td>News</td></tr>
<tr><td>Comments:</td><td>Comment</td></tr>
<tr><td>Attach File:</td><td>20160113153543_test.doc</td></tr>
</table><br /><br />IP: 68.196.203.224
                )

        )

    [0] => Array
        (
            [Email] => Array
                (
                    [0] => An email with the details below was sent successfully:
                    [1] => To:tom@tompelletier.com
                    [2] => Subject:News Submit for UUFSB
                    [3] => From name:UUFSB
                    [4] => From email:uufsbnews@uufsb.org
                    [5] => CC:
                    [6] => BCC:
                    [7] => Reply name:
                    [8] => Reply email:
                    [9] => Attachments:
                    [10] => Array
                        (
                        )

                    [11] => Body:
<table>
<tr><td>Name:</td><td>TomPelletier</td></tr>
<tr><td>Email:</td><td>tom@tompelletier.com</td></tr>
<tr><td>Date:</td><td>01-20-2016</td></tr>
<tr><td>Daytime Phone:</td><td>6315695552</td></tr>
<tr><td>Evening Phone:</td><td>6315695552</td></tr>
<tr><td>Media:</td><td>Newsletter,Supplement</td></tr>
<tr><td>News:</td><td>News</td></tr>
<tr><td>Comments:</td><td>Comment</td></tr>
<tr><td>Attach File:</td><td>20160113153543_test.doc</td></tr>
</table><br /><br />IP: 68.196.203.224
                )

        )

)
GreyHead 14 Jan, 2016
Hi Tompelletier,

Please put attachfile - the name of the file element - into the Attachments box of the Email action (with no quotes or brackets) and make sure that the Files Upload action is before the Email action in the form On Submit event.

Bob
tompelletier 14 Jan, 2016
Thank you so much for your quick response. I had attachfile in the email action, but I thought was supposed to have the same extension limitations that I have in the upload field. So I had it as attachfile:doc-docx-pdf-txt-jpg. When I removed the extensions, and just put attachfile, it worked perfectly. Thanks again. Aside from that one thing that hung me up, I've been finding Chronoforms to be very easy to use. Thank you.
This topic is locked and no more replies can be posted.