Go to the previous topic.    Go to the next topic.

Default configuration file

The contents of the default configuration file (.FormMail.conf) are shown below.

#### NMS Secure FormMail v2.20 2002/11/21 (Release 1.0)
####
#### *Configuration File*
#### If any values are not set properly, FormMail WILL NOT work.
####
#### Save this file in your home directory (/home/username/) 
#### named '.FormMail.conf'
# Set this to '1' if you receive any errors.  They will
# Be displayed to the browser in a more verbose manner.
[DEBUGGING]
0
[/DEBUGGING]
# This address will recieve bounced messages if any of the emails 
# cannot be delivered, and should be set to your email address.
# 
[postmaster]
you@yourdomain.com
[/postmaster]
# A list of the email addresses that formmail can send
# email to. The elements of this list can be either
# simple email addresses (like 'you@your.domain') or
# domain names (like 'your.domain'). If it's a domain
# name then *any* address at the domain will be allowed.
#
# Also see NOTE below for aliases. 
#
# NOTE: One address/domain per line
#
[allow_mail_to]
yourdomain.com
you@example.com
[/allow_mail_to]
# A hash for predefining a list of recipients in the
# script, and then choosing between them using the
# recipient form field, while keeping all the email
# addresses out of the HTML so that they don't get
# collected by address harvesters and sent junk email.
#
# For example, suppose you have three forms on your
# site, and you want each to submit to a different email
# address and you want to keep the addresses hidden.
# 
# In the HTML form that should submit to the recipient
# 'me@mydomain.com', you would then set the recipient
# with:
# 
# <input type="hidden" name="recipient" value="me" />
#
# NOTE: If an alias is set for any email address, then it is
# not required to be in the [allow_mail_to] block, it
# is automatically allowed.
#
# NOTE: One alias per line.
#
[recipient_alias]
me=>you@yourdomain.com
him=>you@yaoo.com,you@hotmail.com
[/recipient_alias]
# If this flag is set to 1 then an additional email
# will be sent to the person who submitted the
# form. 
#
# CAUTION: with this feature turned on it's
# possible for someone to put someone else's email
# address in the form and submit it 5000 times,
# causing this script to send a flood of email to a
# third party.  This third party is likely to blame
# you for the email flood attack.
#
[send_confirmation_mail]
0
[/send_confirmation_mail]
# The header and body of the confirmation email
# sent to the person who submits the form, if the
# [send_confirmation_mail] flag is set.  In the
# example below, everything between the lines:
#     
#    [confirmation_text]
#  and
#    [/confirmation_text]
#
# is treated as part of the email. 
# !!IMPORTANT!!
# Everything before the first blank line is taken as part of
# the email header, and everything after the first
# blank line is the body of the email.
[confirmation_text]
From: you@yourdomain.com
Subject: Your Form Submission
Thank you for your submission.
[/confirmation_text]
# The Cascading Style Sheet (CSS) used for the 'thank you' page 
# if a redirect is not used.  This is an absolute URL. 
#
# i.e. /css/site.css would be http://yourdomain.com/css/site.css 
#
# This may be left blank.
#
[style]
css/site.css
[/style]
# The Character set used for parsing form data and for the resulting
# 'Thank You' page after form submission.
#
# This may be left blank.
#
[charset]
iso-8859-1
[/charset]