New User Registration
Close

Register

New User








[X] Close

Overview

############################ Mailcode v.1.9.5 ##############################

Mailcode is a simple feedback form system, designed with the novice
web designer in mind. It utilizes CAPTCHA technology to prevent spam
submission, validates email address structure, and validates form fields
to ensure all requested information is provided.

Mailcode is expandable, allowing you to include your own form fields
without editing the complicated source code. Simply add your fields to
the basic HTML form and the mail handler will interpret them. Edit the
HTML form to match your website layout.

To start using the system, simply upload and configure the script, and add
one line of code to your webpage.

__________________________________________________________________

Licensing:

This script is released under GNU Public Licensing terms. It is free to
use, modify, and distribute.

Support is available at http://www.myphpscripts.net

Enjoy!

##########################################################################

// Installation Requirements //

- PHP 4
- GD Library (to generate the .png images)
- sendmail (to send the outgoing e-mail message)

// Installation Instructions //

1. Edit the variables in the mailcode-includes/config.php file.

2. Upload the contents of the mailcode folder in the directory you want to
run the script from. Retain all file and folder locations.

3. Paste the following code wherever you want the form to be shown on your
page: <? include("contact.php"); ?>

4. If the extension on your webpage is not .php, change the extension to .php.
Example: Rename homepage.htm to homepage.php

5. If you want to use file attachments, CHMOD 755 the tmp directory.

6. If you want to use logging, CHMOD 755 your logs directory.

That should be it! The form should show up on your page, and you have a
spam-proof feedback form.

Note: To add form fields or change the form layout, basic HTML knowledge
is required. Edit the contact.php file to make changes.

##########################################################################

// Updates & Bugfixes //

03/05/2010 Fixed a bug in MIME boundary strings when attaching files.

02/06/2010 The included form was updated to XHTML 1.1 standards.

MIME type was changed from text/plain to text/html to support
HTML.

Form parsing has been improved to allow
grouping. To utilize this functionality, grouped fields
must be submitted as an array. For example:

<input type="checkbox" name="checkbox[]" value="checkbox 1" />
<input type="checkbox" name="checkbox[]" value="checkbox 2" />
<input type="checkbox" name="checkbox[]" value="checkbox 3" />
<input type="checkbox" name="checkbox[]" value="checkbox 4" />
<input type="checkbox" name="checkbox[]" value="checkbox 5" />

12/30/2008 Field validation has been improved to reference
unchecked checkboxes.

12/29/2008 Improved logging capabilities. Logfiles now include
required and submitted security codes, attachment names,
errors, referrer string, and user agent string.

12/22/2008 Removed the word "Message" from generated emails and
separated the actual message with two linefeeds.

12/21/2008 Added an array to specify validated fields, changed the
CAPTCHA refresh code to eliminate page reloads.

02/26/2008 Added multi-file upload capabilities, combined external files.

09/29/2007 Redesigned the CAPTCHA image.

07/07/2007 Fixed a bug in which enabling file attachments would cause
the script to require an attached file with all messages.
Added stripslashes() to all submitted form values.

07/01/2007 Changed the default font.

06/23/2007 Added file attachments.

05/27/2007 Headers will now be formatted to use the sender's
name and email. Fixed a bug that caused logging to
remain on all the time.

04/25/2007 Added form field validation. All form fields are checked to
ensure they have been filled out. Added a javascript image
reloader.

04/24/2007 Added logging capabilities. All messages submitted through
the form can now be logged to the directory of your choice.
Regardless of whether the form was mailed or not, submissions
can be logged in date-formatted flat files. This means that
each day, a new logfile is generated and all submissions for
that day will be logged in the new file.
[X] Close
lead
View our reviews on Hot Scripts
Listed at Hot Scripts in PHP

Mailcode

No Captcha Image

User Post
ctdesign87
Member
Posts: 2
Posted: 2008-05-15 20:51:37
Just wanted to know why there wasn't any CAPTCHA image showing up, just a blank grid.

Have made the permissions for logs and tmp 777

Any ideas?
Josh
Admin
Posts: 45
Posted: 2008-05-16 02:22:24
Make sure the GD Library is installed on your server. You can get the information by using the GD test script from http://www.dagondesign.com/articles/checking-for-gd-support- on-your-server/
Scott
Admin
Posts: 211
Posted: 2008-05-16 11:37:55
Freetype libraries are required in addition to GD. I would check those two things first.
Josh
Admin
Posts: 45
Posted: 2008-05-16 15:04:00
That script I posted a link to shows if there is FreeType support:

http://www.dagondesign.com/demo/gd-test.php
secrefice
Member
Posts: 3
Posted: 2008-12-15 04:37:17
Hello, i got both installed on the server (GD and Freetype) but still no image - are there any other solutions?
secrefice
Member
Posts: 3
Posted: 2008-12-15 04:49:55
Problem solved - complete directory was the key :-)

scanreg
Member
Posts: 2
Posted: 2009-04-26 09:47:51
What do you mean?

"Problem solved - complete directory was the key :-)"

Where do you put in the "complete directory" ?

Do you mean the full path?

Where do you put that in?

Having the same prob

Thanks
scanreg
Member
Posts: 2
Posted: 2009-05-28 06:19:07
Where do you write in the full path?

I can't get the captcha image to work
Scott
Admin
Posts: 211
Posted: 2009-05-31 08:10:35
The full path should be entered in the config file.
rachel
Member
Posts: 1
Posted: 2009-07-01 16:18:15
My server doesn't support GD. Does this mean I cannot use MailCode?
Scott
Admin
Posts: 211
Posted: 2009-07-10 10:09:27
Yes, GD support is required for the script to work.
Barricademan
Member
Posts: 1
Posted: 2009-08-07 00:30:11
For those who were wondering how to fix the Captcha problem, ie; not showing, Here is how to fix it:


Open contact.php in your editor.....
If your editor supports (go to line) go to line # 52, if not,
search for:

Code:
<img src="mailcode-includes/captcha.php" name="captcha" id="captcha" alt="Security Code" title="Security Code"><br>


This will be just under where it says "End Attachments"

Where it says Code:
img src=


make it reflect the complete path to where the captcha.php is on your server.
wixen
Member
Posts: 1
Posted: 2009-10-10 16:24:47
Love the demo and would really like to get this to work. Tried just about everything. Looked at all the info and checked. I have both installed on the server (GD and Freetype) but still no image. Tried changing permissions, completed different full paths, started out new at least 3 or 4 times. Still hit a brick wall at getting a image.
Assis
Member
Posts: 2
Posted: 2010-03-01 12:30:41
When I click to get new code I get the following errors:
Warning: opendir(tmp/) [function.opendir]: failed to open dir: No such file or directory in /customers/tei.se/tei.se/httpd.www/order/contact.php on line 264
Scott
Admin
Posts: 211
Posted: 2010-03-02 01:06:19
Quote: Assis
When I click to get new code I get the following errors:
Warning: opendir(tmp/) [function.opendir]: failed to open dir: No such file or directory in /customers/tei.se/tei.se/httpd.www/order/contact.php on line 264


Create a new directory under /order/ called /tmp/.
Assis
Member
Posts: 2
Posted: 2010-03-03 04:27:38
Thanks Scott, it is working fine now :-)
Page: [ 1 ]

New Post

You must be logged in to post on the discussion boards.
Einstein Computers LLC - Computer Service, Repair, and Web Development in East Texas including Henderson, Laneville, Cushing, Mt. Enterprise, Reklaw, and Lake Striker