GloDerMail V2
 Derry Thompson derry@GloDerWorks.com

Hi. Welcome to GloderMail.asp, a form processing script for
ASP.

This version is for the standard WindowsNT/2000 mailobject.
This script exists for other mailobjects too (ASPMail for
example). If you require a different version then please
mail me.

GloDerMail has the following functionality:-
a) It will email the results of a completed HTML form to an
email address you specifiy.
b) It will check for required fields, and send the user to
an error page if these are not completed
c) It will check for a valid email address and send the
user to an error page if the email address is not in a
valid format.
d) It will send the user to a "thank you" page if they
complete the form.
e) It will auto send a "Thank you" email to the user.
f) It will check the referring server so it can't be used
for spam.
g) It will sort the form fields into alphabetical order.

All these functions can be turned off if required.

This package should contain the following files.

contact.html - a sample form
formerror.html - an standard error page
GloDerMail_CD.asp - the script itself
mailerror.html - email error page
styles.css - external .css file
thanks.html - standard "Thank You" Page
readme.txt - this text you are reading :)
referror.html - the referrors errors Page.

What you you need to do?

At it's simplest all you need to do is amend  the section
marked in GloDerMail_CD.asp

'SPECIFY REFERRING URL'S
refer= array ("127.0.0.1", "www.GloDerWorks.com")

to contain your domain(s) & IP, like so


'SPECIFY REFERRING URL'S
refer= array ("127,127,127,127", "www.yourdomain.net")

Then amend "contact.html" with your form fields, change the
recipent field to your required email address, upload all
these files to your server and that's it.

Good luck

Description of Hidden Form Fields Purpose and Functionality.

Recipient.
This should contains the email address to which the
contents of the form should be sent.

Required.
This should contain the names of the form field that a user
must complete. They should be seperated by commas. If a user
fails to complete these fields they will be taken to the 
field error page.

Missingfields
This contains the name of the file that user with be sent
to if they have not competed any of the required fields.

Redirect
This contains the name of the file that users will be
directed to once they have successfully completed the form
and the email has been sent.

Redirect2
This contains the name of the mail error  page. Users will
be directed to this page if they have entered an
incorrectly formatted email address.

Reply.
This contains the text of a message that will be sent to
the user to confirm that their email has bben recieved.
This will only be sent if:-
There is a hidden field name 'reply'.
There is a field named 'email'.
There is a field called 'redirect1'.

You may insert line feeds into the reply by using **, these
will automaticaly be translated to line feeds.

Field Sorting.
GloDerMail automatically sorts form field into alphabetical
order. If you would like the fields arranged in a particular
order then you can number them like so.

01.Surname.
02.Forname.
03.Address 1
04.Address 2
05.City.

GloDerMail will then sort them numerically. 

Thank you for using GloDerMail.



send bugs & suggestions to derry@GloDerWorks.com

