Download Perl ScriptsIntelliscript Submit Form Mailer - $0.00 Version 70108
Add to Cart
Submit Form Mailer by Intelliscript.net
(c) 2000-2007 Jason Silver
Submit Form Mailer allows you to quickly and easily set up
a form processor on your site which will mail you the results
of form submissions.
Report any bugs or improvement suggestions to firstname.lastname@example.org.
How It Works:
Upload the script to your cgi-bin, and then point a form's action
tag to the URL of this script.
1. Set some options at the beginning of the scripts
2. Use FTP to upload the files
4. Set exectute permissions on the Perl script, and write permissions on the
4. Test the script
1. Using a text editor like textpad, or notepad, open the .pl file(s)
Change the path to perl so that it's
configured for your server.
2. Change the variables at the top of the script, including your header and footer html.
$emailprog = '/usr/sbin/sendmail'; # the location of sendmail on your Unix/Linux server
$admin_email = 'email@example.com'; # your email address- form submissions will go here
$antispam_password = 948722; # a six character random number - to discourage spamming your form
3. Open the form file you've made (or see our exampleform.shtml) and set
the action tag of the form to point to your script, wherever you may have put it or renamed it.
<form method=post action="http://www.yoursite.com/cgi-bin/email_form.pl"> (full url)
<form method=post action="/cgi-bin/email_form.pl"> (relative path)
<form method=post action="/forms/formprocessor.cgi"> (renamed script, not in cgi-bin)
A form can only be submitted to this form-processing-script if it contains the password, which
is related to the current time of day. This discourages spammers from sending you email through
your form from their own servers, since their forms won't contain the password.
To insert the password in your forms, the html page on which the form exists must be able to
process a server side include (SSI). Insert the following code within the form tags on your html
page to have the password inserted automatically:
This will insert a hidden field in your form which contains the passkey. If it is not being
inserted automatically, try changing the extension of your form from .html or .htm to .shtml,
which is the special extension for SSI's.
To validate the form on submission, to make sure that fields are not left empty, take a look
4. Use an FTP program like WS_FTP or CuteFTP (just some examples I'm aware of)
and upload the files to your server's cgi-bin.
5. Set permissions (CHMOD):
email_form.pl file: 755
NOW, TEST IT:
6. From a browser, open the exampleform.shtml file, or your own form and try submitting it.
As always, let me know of problems, questions, or requests for features.