Forums

Upload path wrong, Mail doesn't work

bitfire 28 Apr, 2015
Hello,

I have 2 problems with a validated site of mine:

1. I use a form to upload up to 4 different files in one form, the upload works.
But somehow it doesn't upload it to the direct path
e.g.: instead of uploading to /usr/www/users/xyz/public_html/myfolder
it uploads to /usr/www/users/xyz/public_html/myfolder/myfolder

2. After the upload the file should get attached to an email, but i never receive an email.
This is kinda weirt because the debugger says that the email was sent.
(i tried to send mails with other moduls/components and it didn't work either, but they worked before installing chronoforms)
Can anyone help me how i can fix this issue, please?
GreyHead 28 Apr, 2015
Hi bitfire,

Please drag a Debugger action into the On Submit event, then submit the form and post the debug - including the 'dummy emails' results here.

It looks as though you may be missing a / from the end of the path.

Can't tell about the emails from here. I know no reason why installing ChronoForms would affect any other emails.

Bob
bitfire 29 Apr, 2015
ok the upload works now! but the mail still doesn't send, but the debugger says it was sent successfully:
I need help, please!

Debugger:
Data Array

Array
(
    [option] => com_chronoforms5
    [chronoform] => Bewerbungen
    [event] => submit
    [bewerbung_als] => 0
    [Name] => test
    [Telefon] => test
    [Email] => test
    [captcha] => 
    [submit] => Abschicken!
    [Datei1] => test.docx
)

Array
(
    [Datei1] => Array
        (
            [name] => test.docx
            [original_name] => test.docx
            [path] => /usr/www/users/abc/public_html/abc/test.docx
            [size] => 11435
            [link] => /usr/www/users/abc/public_html/abc/test.docx
        )

)

Errors

Array
(
)

Debug Info

Array
(
    [7] => Array
        (
            [Files Upload] => Array
                (
                    [0] => Upload routine started for file upload by : Datei1
                    [1] => /usr/www/users/abc/public_html/abc/test.docx has been uploaded successfully.
                )

        )

    [14] => Array
        (
            [Email] => Array
                (
                    [0] => An email with the details below was sent successfully:
                    [1] => To:test@abc.de
                    [2] => Subject:Neue Bewerbung
                    [3] => From name:Website
                    [4] => From email:website@*abc*.de
                    [5] => CC:
                    [6] => BCC:
                    [7] => Reply name:
                    [8] => Reply email:
                    [9] => Attachments:
                    [10] => Array
                        (
                            [0] => /usr/www/users/abc/public_html/abc/test.docx
                        )

                    [11] => Body:
<table>
<tr><td>&</td><td></td></tr>
<tr><td>Bewerbung als:</td><td>0</td></tr>
<tr><td>Name:</td><td>test</td></tr>
<tr><td>Telefon:</td><td>test</td></tr>
<tr><td>Email</td><td>test</td></tr>
<tr><td>Datei 1:</td><td>test.docx</td></tr>
<tr><td>Datei 2:</td><td></td></tr>
<tr><td>Datei 3:</td><td></td></tr>
<tr><td>Datei 4:</td><td></td></tr>
</table><br /><br />
                )

        )

)
bitfire 29 Apr, 2015
The debugger says it was sent, but it wasn't. I tried it with other mail adresses and it doen't work.
bitfire 29 Apr, 2015
The mail function is working with other components tho
GreyHead 29 Apr, 2015
Hi bitfire,

By all means PM me the site URL, the form name, and a SuperAdmin login and I'll take a quick look.

Bob
bitfire 29 Apr, 2015
Never mind, i found the solution. Thanks for your time!
This topic is locked and no more replies can be posted.