Documentation
Version-2 has been released. You can download from here.
About AJAX contact form
This nice looking contact form has the following features.
- Ability of spam protection by CAPTCHA image verification.
- Your personal email address where the messages will be delivered shall never be disclosed to the viewers.
- This script includes auto responder. The purpose of auto responder is to send an automated email to the sender email address informing that the message has been received. You can edit auto responder message text from your control panel.
- From your control panel you can send email to multiple recipients both in text and in HTML format.
- You can use this contact form as popup contact form.
Installation
Installation of this contact form is pretty simple.
- Download the zip file from here.
- Upload it to the web root of your server.
- Unzip or extract it. If your server doesn't have unzip utility then unzip at your local computer, and then upload using FTP.
- Set the permission of the following directory and files to 0644 or simply
644.
- File=> /mail/database/config.php;
- File=> /mail/database/db.php;
- File=> /mail/database/settings.php;
- Open link http://yourdomainname.com/mail/
If you like to use this contact form as popup contact form
If you like to use this contact form as popup contact form:-
1. Delete contact.html page.
2. Add the following lines of code between <head> and </head> tags at the pages from where you want to open popup form.
<script type="text/javascript">
<!--
function popupContact(){
var url = "contact.php";
window.open(url,'ContactUs','width=500,height=550,toolbar=no,location=no,directories=no,status=yes,enubar=no,scrollbars=yes,copyhistory=yes');}
-->
</script>
3. Add JavaScript link:
<a href="javascript:popupContact()">Contact</a>. When user click on this link a popup window will appear.
Read mail
All emails will be delivered to the email address you provide during installation.
So you can read them by logging-in at your email account.
How to add contact form to your existing web page**
If you like to add/insert this "contact form" into your existing web page:-
1. Open file "contact.html" with your favorite text or HTML editor.
2. Copy the codes between
<body> and
</body> tags.
3. Past it at the desired position of your existing page.
4. Put the following lines of code between <head> and </head> tags.
<script type="text/javascript" src="mail/script/mail.js"></script>
<script type="text/javascript" src="mail/script/common.js"></script>
<style type="text/css">
body, div, td, input{font-family: arial;font-size:12px;}
.text{height:17px; border:1px solid #999999; width:100px;}
.text:hover{background:#fdfdd3;}
a{color:#999999;}
a:hover{color:#6699aa;}
</style>
__________________
** Existing page may be in PHP or HTML or HTM format.
Maximum message length
To restrict user from any misuse or doing any evil activity maximum message
length is limited to three thousand (3000) characters. You can edit this
value according to your requirement. Open file "
/mail/script/mail.js" with your favorite text/html editor. At line-30 find the string
if(validateForm(3000)){
Only change the red color text.
Server Requirements:
PHP 5.0 or higher with GD installed are required to run the script.
If your system doesn't meet these requirements please write here for necessary modifications.
Copyright:
This product is protected by copyright and distributed under licenses
restricting copying, distribution. Permission is granted to the public
to download and use this script provided that this Notice and any
statement of authorship are reproduced in every page on all copies of
the script.
DISCLAIMER OF WARRANTIES:
THIS SCRIPT PRODUCT IS
PROVIDED "AS-IS". NO WARRANTY OF ANY KIND IS EXPRESSED OR IMPLIED. YOU
(RECIPIENT) USE THIS SCRIPT AT YOUR (RECIPIENTS) OWN RISK. TO THE
MAXIMUM EXTENT PERMITTED UNDER APPLICABLE LAWS, AUTHOR EXPRESSLY
DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
TO IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
PURPOSE, AND NONINFRINGEMENT. AUTHOR DOES NOT WARRANT THAT THE
FUNCTIONS CONTAINED IN THE SCRIPT WILL MEET YOUR REQUIREMENTS, OR THAT
THE OPERATION OF THE SCRIPT WILL BE UNINTERRUPTED OR ERROR-FREE, OR
THAT DEFECTS IN THE SCRIPT WILL BE CORRECTED. FURTHERMORE, AUTHOR DOES
NOT WARRANT OR MAKE ANY REPRESENTATIONS REGARDING THE USE OR THE
RESULTS OF THE USE OF THE SCRIPT IN TERMS OF ITS CORRECTNESS, ACCURACY,
RELIABILITY, OR OTHERWISE. NO ORAL OR WRITTEN INFORMATION OR ADVICE
GIVEN BY AUTHOR OR RAMUI.COM SHALL CREATE A WARRANTY OR IN
ANY WAY INCREASE THE SCOPE OF ANY WARRANTY.