FormMail script

m (Created page with "<div align=justify>Having a contact form on your site is very useful as it allows your visitors to contact you or just leave a comment. But simply adding the code of the form to ...")
 
m
 
Line 1: Line 1:
<div align=justify>Having a contact form on your site is very useful as it allows your visitors to contact you or just leave a comment. But simply adding the code of the form to the page is not enough. For it to function properly, you need to have formmail script under your hosting account. Don't worry, it is not that difficult and can be done within several minutes.
+
<seo title="FormMail script" metakeywords="contact form,email form,formmail" metadescription="How to use formmail script for a contact form" /><div align=justify>Having a contact form on your site is very useful as it allows your visitors to contact you or just leave a comment. But simply adding the code of the form to the page is not enough. For it to function properly, you need to have formmail script under your hosting account. Don't worry, it is not that difficult and can be done within several minutes.
  
 
First, follow the links below. There you can download the formmail script and get information on its installation and usage:
 
First, follow the links below. There you can download the formmail script and get information on its installation and usage:
Line 9: Line 9:
 
Once the formmail script is downloaded to your local computer, you need to upload it to ''cgi-bin'' folder on the server (this can be done via any '''''[http://myidealhost.com/tutorials/What_is_FTP FTP]''''' client) and set '''''[http://myidealhost.com/tutorials/How_to_change_file_permissions permissions]''''' for formmail.pl to 755. Then find the following line in the .pl script:
 
Once the formmail script is downloaded to your local computer, you need to upload it to ''cgi-bin'' folder on the server (this can be done via any '''''[http://myidealhost.com/tutorials/What_is_FTP FTP]''''' client) and set '''''[http://myidealhost.com/tutorials/How_to_change_file_permissions permissions]''''' for formmail.pl to 755. Then find the following line in the .pl script:
  
@referers = ('scriptarchive.com','YOUR_IP');  
+
'''''@referers = ('scriptarchive.com','YOUR_IP'); '''''
  
 
and change it to:
 
and change it to:
  
@referers = ('yourdomain.com','www.yourdomain.com');
+
'''''@referers = ('yourdomain.com','www.yourdomain.com');'''''
  
Also you will need to add the following line to your contact form:
+
Also you will need to add the following line to your contact form:</div>
  
<input type=hidden name="recipient" value="email@your.host.com">
+
'''''<input type=hidden name="recipient" value="email@your.host.com">'''''
  
This defines to which email address you want the emails from your form to be sent.
+
<div align=justify>This defines to which email address you want the emails from your form to be sent.
  
Finally, add the following line to the code of the page your form is located on:
+
Finally, add the following line to the code of the page your form is located on:</div>
  
<form action="http://www.yourdomain.com/cgi-bin/formmail.pl" method="post" name="frmContact" id="frmContact">
+
'''<form action="http://www.yourdomain.com/cgi-bin/formmail.pl" method="post" name="frmContact" id="frmContact">'''
 
+
<div align=justify>This specifies the path to your formmail script.  
This specifies the path to your formmail script.  
+
  
  
 
Now you should be able to receive mails sent from the contact form on your website.</div>
 
Now you should be able to receive mails sent from the contact form on your website.</div>

Latest revision as of 07:43, 30 January 2012

rss feed for my website