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

Unreadable Results

User Post
rladuke
Member
Posts: 4
Posted: 2008-10-02 12:41:15
I am using Mailcode with a customized form on Hostmonter.

When I get my results email, it is Multi-part MIME email that I'm unable to read.

What do I do to get it so I can actually read the form? I'd prefer to retain the HTML formatting, but I'll take plain text if I have to.


Thanks.





See below for cut/paste of actual email.


This is a multi-part message in MIME format.

--6da652e79959169ed00348720c66c09a
Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes
Content-Transfer-Encoding: 7bit

Below is an application submission. It was submitted on Thursday, October 2nd, 2008 at 12:11 AM.


Address : 76.22.172.74
Shift :
Sendtoemail : XXXXXXXX@promovacations.biz
Subject : Website Application
Message :

--6da652e79959169ed00348720c66c09a
Content-Type: application/msword; name="AD CALLS.doc"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename=AD CALLS.doc


0M8R4KGxGuEAAAAAAAAAAAAAAAAAAAAAPgADAP7/ CQAGAAAAAAAAAAAAAAACAAAAsAAAAAAAAAAA
EAAAsgAAAAEAAAD+////AAAAAK4AAACvAAAA//////////////////////// ////////////////
//////////////////////////////////////////////////////////// ////////////////
//////////////////////////////////////////////////////////// ////////////////
//////////////////////////////////////////////////////////// ////////////////
//////////////////////////////////////////////////////////// ////////////////
//////////////////////////////////////////////////////////// ////////////////
//////////////////////////////////////////////////////////// ////////////////
//////////////////////////////////////////////////////////// ///////////////s
pcEAJWAJBAAA8BK/ AAAAAAAAEAAAAAAABgAA+QgAAA4AYmpiapXZldkAAAAAAAAAAAAAAAAAAAAA
AAAJBBYAvOwAAPezAQD3swEA6wAAAAAAAAANAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAD//w8AAAAA
AAAAAAD//w8AAAAAAAAAAAD// w8AAAAAAAAAAAAAAAAAAAAAAKQAAAAAAM4EAAAAAAAAzgQAAM4E
rladuke
Member
Posts: 4
Posted: 2008-10-02 15:12:27
After looking at the results, I now see that the multi-part MIME was the attachment that I tried to test.

I'm still having problems with this not being readable, however, more importantly I now realize that my Message: is completely blank when it is emailed to me.

How do I fix this?


The form is at: www.promovacations.biz/mailcode18/contact.php


Any help would be greatly appreciated.

Scott
Admin
Posts: 211
Posted: 2008-10-03 07:28:44
What email client are you using? The characters you're seeing are the base64-encoded file, so the data is definitely being sent. Try sending the data to another email client and let me know what the results are.
rladuke
Member
Posts: 4
Posted: 2008-10-03 10:42:20
I've tried opening with all three mail clients provided by Hostmonster, as well as Windows Mail. I've also tried sending it to an new account on Comcast.net, and I still get the same un-decrypted data.

Any idea on how to decrypt on any of these clients, or send the message in a readable format?

My main question here is not regarding the attachments anymore (though that would be nice too). Mainly I'm trying to get my form results in an HTML format? I get the "Message:" messagebox text, but nothing else from any of my custom fields on the HTML form. That is what I REALLY care about right now.

Thanks
Scott
Admin
Posts: 211
Posted: 2008-10-04 08:04:41
Can you post a link to your contact form?
rladuke
Member
Posts: 4
Posted: 2008-10-04 20:02:18
Quote: rladuke
After looking at the results, I now see that the multi-part MIME was the attachment that I tried to test.

I'm still having problems with this not being readable, however, more importantly I now realize that my Message: is completely blank when it is emailed to me.

How do I fix this?


The form is at: www.promovacations.biz/mailcode18/contact.php


Any help would be greatly appreciated.

Scott
Admin
Posts: 211
Posted: 2008-10-05 06:53:50
The first thing I notice is that all of your added form fields have the same name of Shift. Each form field needs to have a unique name. Try renaming all your added form fields to unique values, and then we can move forward to figuring out the encoding issue.
kowboy1
Member
Posts: 1
Posted: 2009-11-21 18:18:13
I have more or less an identical problem with mailsend from my hostmonster hosting.
Mails arive blank with an attached file called "noname" that reads:


--
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit


--
Content-Type: text/HTML; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit


----


Name:
Email:

Message:

Did anybody solve this other fellow issue? as it may be helpful to me ?
Scott
Admin
Posts: 211
Posted: 2009-11-27 10:15:04
The first thing we need to do is look at your contact form. Do you have an URL I can look at?
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