(Sep 22nd, 2010, 11:08 AM)filch Wrote: Hi folks,
I am trying to use formtools for a site that is hosted on Windows. I am unable to get emails and file uploads working, even though all the rest works.
For the emails, it seems to be a problem with the FROM: headers not being set properly in the script. In the emails section of the setup for this form, I have set the from email to be the field in the form called email. I have one email going to my client, which for now, I have subsituted my email for the one I will eventually use. And, I have taken the part of the user with a different email address, which means I should receive two: a notification and a confirmation .... neither of which I receive. I have verified that emails from PHP scripts do indeed work on the server through the use of a generic PHP script.
PHP Code:<?php
if(mail('submit@zuka.net','test subject','test message', "From: sender@example.com\r\n" .
"X-Mailer: php")){
echo('ok');
}
else{
echo('not ok');
}
?>
This script generates an email but formtools does not.
As far as file uploads go, I have checked that the permissions on the upload folder are correct and that the path is also correct. I have ensured that the form is set to multipart/form data.
I need help on this as I have to get this functioning today .... ???? Anyone?
Dave
I really do need some feedback and help here as my client is freaking. I did try the upload from one of the submissions and it does not work so it is not my form. I have logged into the control panel of the server and made the upload folder writable but it still gives me an error from withing the submission when I try to upload a file which says "folder is not valid or is not writable". I have tried everything I can think of but no go. Also, the whole email thing is really frustrating because apparentluy, formtools uses the following From: header: "<Some User <someuser@somedomain.com>> when in fact, the windows email server only wants "From: someuser@somedomain.com"
I am open to try anything at this point.
Dave
Here is a weird thing: in the files setup area in formtools admin, the path to the folder gets changed to look like this:
D:UsersOoabwww.oab.caadminformtoolsupload
i.e. no backslashes. If I edit the path to add the slashes, it does not give me an error but then still will not upload the file, giving m the error:
Your submission was updated, but the following file(s) had problems:
• WEEK FOUR.docx: This field's upload folder is either invalid or is not writable.
Yet I go back to the files area and test the permissions again and formtools reports the permissions to be correct. So, is it an invalid path? But how can it be is formtools tests permissions and says all is good?
Very frustrating. Hate windows servers for live.
Dave