This forum is no longer open and is for reading/searching only.
Please use our new MachForm Community Forum instead.
MachForm Community Forums » MachForm 2
New Install - two problems
Started 14 years ago by CruiserPatrick | 2 posts |
-
I installed the software on my server - everything went well. The form collects the data and displays it for me. Exporting to excel works fine. But I'm having three issues:
1. I am not receiving any email notification when the form is filled out - and when I go in as admin and request an email be sent, it says it was sent successfully, but it is not. I do not get the notification.
2. I have an upload field on my form for pictures, but it doesn't work.. It doesn't upload and I don't know where to look on the server to find them if they did.
3. I would like to add a custom header graphic to the form, but when I click the edit css button I only get a blank window.
the form is currently at http://evaluation.norcalcruises.com/machform/view.php?id=1
Thank you for any assistance.
Posted 14 years ago # -
Concerning emailing the submissions
My guess is that Machform can't send the email because it's not configured to do so correctly.
Take a look at the following settings in your config.php:
** SMTP settings **/ define('USE_SMTP',false); //set this to 'true' to use SMTP define('SMTP_HOST','localhost'); //usually 'localhost' define('SMTP_PORT',25); //usually 25, but ask your host if not sure what to use. define('SMTP_AUTH',false); //if your SMTP requires authentication, set this to 'true' define('SMTP_USERNAME','YOUR_SMTP_USERNAME'); define('SMTP_PASSWORD','YOUR_SMTP_PASSWORD'); define('SMTP_SECURE',false); //set this to 'true' if your server is using secure SMTP (TLS/SSL)
and
/** Default notification email settings **/ define('NOTIFICATION_MAIL_FROM','no-reply@domain.com'); //define your email address here' define('NOTIFICATION_MAIL_FROM_NAME','Machform'); //define the "from name" here. define('NOTIFICATION_MAIL_SUBJECT','Form Submission from Machform');//define the subject line here
You also need to set up, for each form the email settings such as to which email address you want the submissions sent. You can have Machform email you (or your client) every form submission (customisable on a per-form basis) and also to the person filling in the form as an "auto reply" and you can customise the message somewhat and include/exclude certain fields/information.
Concerning the uploads
Have you defined the settings in config.php under the following section(s)?:
/** Data folder **/ /** Folder settings for your CSS files and upload folder **/ define('DATA_DIR', './data'); //CSS files folder define('UPLOAD_DIR', './data'); //for maximum security, set full path to any folder outside your document root
With the uploads, you need to set some options in the config.php such as defining the folder to which uploads will go, and the types of files can be defined as "allow" or "prohibited" as per examples below. If you want to allow only images to be uploaded, you would define the file type extensions as below:
/** File upload limit **/ define('UPLOAD_FILETYPE_ALLOW','jpeg;jpg;gif;png;'); //allow these file-types
You can then define "denied" file types if you wish, but anything not in the "allowed" list will be denied also. Typical "denied" extensions include HTML, PHP, EXE, CGI etc
define('UPLOAD_FILETYPE_DENY','php;exe;pl;cgi;html;'); //do not allow these file-types
The ability to upload files will also depend on your host allowing this. They may also impose a limit on the file size (e.g. maximum of 2 megabytes), to save the load on their servers caused by uploading 2 gigabyte files or something crazy like that.
Finally concerning the custom header
The link you gave already shows the form with the custom graphic "Cruise Evaluation form" (?). That seems to work but I don't know about the blank CSS file you mentioned.
Posted 14 years ago #
Reply
You must log in to post.