// If you find you are getting a "parse error" when submitting your form, // it's possible you broke the syntax of this file (which is simply PHP code to set some variables.) // Check against a known good copy of this file for any syntax errors. // All of the variables are setup like this: // $variablename = 'setting'; // Double quotes (") are just as valid as single quotes (') // * * * * * * * * * Required Parameters * * * * * * * * * // SENDER // there can be only one sender $sender = 'formmailSender@macserve.net'; // you can optionally specify the field to grab the send address from $sender_field = ''; // RECIPIENT(S) // you must have at least one valid recipient of some type. // you can one or more recipients. simply separate with a comma $TOrecipients = 'null@macserve.net,null@macserve.net'; // CC Recipients will get a copy, and others will see that they got a copy. $CCrecipients = ''; // BCC recipients will get a copy of the email, but no one will see that they did. $BCCrecipients = ''; // REDIRECT // redirect is the page where you would like the user sent to after submitting the form // if empty, a simple message will be displayed that the form was successfully submitted. $redirect = 'demo_html.html'; // * * * * * * * * * Optional Parameters * * * * * * * * * // SUBJECT $subject = 'My subject'; // FORMAT file // option to use an external file to format the body of the email that is sent // If no format file is specified, the email message body will be built using the // form's data with the format of "fieldname: fielddata", one per line $format_file = 'emailform.txt'; // See the sample file to get a feel for how the file can be formatted // and how to specify form data to be placed into the body. // This params file can also be your format file. See the bottom of the file for more information. // ACKNOWLEDGEMENT // option to send an acknowledgement email to the person who entered form. // This must be the field name where that email address can be found. // if empty no acknowledgement will be sent. $ack_email_to_field = ''; $ack_email_subject = ''; // Alternate subject to use. If blank: "Your form submission was sent" $ack_email_sender = ''; // if no sender address defined here, the sender above will be used. $ack_email_msg = ''; // ack msg to send. if blank, a simple ack msg will be sent. // ack msg text to send is stored in a file. overrides anything in ack_email_msg // same format as the format_file above $ack_email_msg_file = ''; // FILE UPLOADS // Path relative to your web site root where you want uploaded files copied to. $path_to_file_uploads = "/myfiles"; // ENVIRONMENT REPORT // characteristics of the form submitter's browser or IP address that you want to capture as well // can any combo of: REMOTE_USER,REMOTE_HOST,HTTP_USER_AGENT,REMOTE_ADDR $env_report = "REMOTE_ADDR,HTTP_USER_AGENT"; // BAN LIST // Email addresses within will be rejected. // This list is in addition to any defined in the master formmail.php script $banlist = ''; // * * * * * * * Verification values * * * * * * * * // REQUIRED fields $require = "email,phone_no"; // If there are fields missing, redirect the user to this page. // If blank, then a simple message page telling user they need to enter data. $required_missing_redirect = ''; // FIELD FORMMATTING // field(s) to perform email address verification on for form to submit successfully. $email_verify = 'email'; // field(s) to perform zip code verification data on for form to submit successfully. $zip_verify = ''; // field(s) to perform phone number verification data on for form to submit successfully. $phone_verify = ''; // $formatMode is explicity set when formmail is asking for a format file. if ($formatMode != 1) return; // if it is in format mode then // the data that follows will be returned to the script for parsing/merging ?> Name: [formdata: 'name'] City: [formdata: 'city'] State: [formdata: 'state'] Zip: [formdata: 'zip'] E-mail: [formdata: 'email'] Phone: ([formdata: 'phone_no']) [formdata: 'email'] Comments: [formdata: 'comments'] Add to mailing list?: [formdata: 'mailinglist'] An email was sent to: [formparam: 'TOrecipients'] with a subject of: [formparam: 'subject']