Beruflich Dokumente
Kultur Dokumente
1
dB Masters' PHP FormMailer is created by:
Dan Ball
Owner and Operator
dB Masters Multimedia
http://www.dbmasters.net/
INSTALLATION AND CONFIGURATION
** One major change in version 3.0. You no longer link to emailer.php. You link
to whatever form you want to process.
Now, the action of that form has to direct to emailer.php as shown in the sam
ple form.
1- Edit emailer_form.php (or any other form for that matter) by building the for
m you desire. See reference below for hidden field options.
2- Be sure the action of the form is aimed at the emailer.php file
3- Build the "Thanks" and/or "Error" page(s) if you choose the custom option
4- Edit the top few variable at the top of emailer.php to suit your needs, the a
vailable variables are as follows:
// recipient configuration - this is the array of recipients for the form, the n
umber in the brackets
// must match the number in the "recipient_group" hidden field explained below
$tomail[0]="";
$cc_tomail[0]="";
$bcc_tomail[0]="";
$tomail[1]="";
$cc_tomail[1]="";
$bcc_tomail[1]="";
$tomail[2]="";
$cc_tomail[2]="";
$bcc_tomail[2]="";
// General Variables
// whether or not to check the referrer, 1 for yes, 0 for no
$check_referrer=1;
// domains allowed to use the emailer, with and without www
$referring_domains="http://domain.com/,http://www.domain.com/";
// Default Error and Success Page Variables
$error_page_title="Error - Missed Fields";
$error_page_text="Please use your browser's back button to return to the
form and complete the required fields.";
$thanks_page_title="Message Sent";
$thanks_page_text="Thank you for your inquiry";
HIDDEN FIELD OPTIONS
subject - The subject of the email to be sent
reply_to_field - The name of the field that should be put in the "from" field of
the email
required_fields - a comma separated list of fieldname to be validated for conten
t
required_email_fields - a comma delimited list of fields to be validated for val
id email address syntax
recipient_group - the number that refers to the number in the brackets of the li
st of recipients to recieve this email
error_page - the filename (and path if necessary) to a custom error page, if mis
sing or blank default text in variable above will be used
thanks_page - the filename (and path if necessary) to a custom thanks page, if m
issing or blank default text in variable above will be used