Hosting Web Sites Around the World
Home   About   Support   Search   Contact
  Ask Support
   
  Account Overview
  Control Panel Overview
    
  Anonymous FTP
  Archive Manager
  Active Server Pages
  CGI-BIN & File Paths
  Changing Passwords
  Counters
  Cron Job Manager
  Custom Error Manager
  Email Software Setup
  File Manager
  Formmail
  FTP Instructions
  .htaccess File
  IP address
  Mail Manager
  Mailing Lists
  Mime Types
  MS FrontPage
  MX-Logic
  MySQL
  Password Protection
  PGP & PGP Mail
  Real Audio/Real Video
  Redirect URL
  Revved Up Tools
  Search Engine
  Secure Mail
  Secure Server SSL
  Shopping Cart
  Site Statistics
  SiteXpress
  SSH / Telnet
  SpamVault
  Sub-Domains
  Submission Tips
  Webmail
  Web Site Builder

 

 

Support Manual

Back to Formmail

Editing Your .FormMail.conf File

Editing your hidden .FormMail.conf script allows you greater flexibility in using the formmail script. Two of the most useful things you can do are:

1. Set a form recipient who is outside your domain (offsite email address)

2. Alias recipients so their email addresses are not available to email harvesters (spammers).

To edit your .FormMail.conf file,

1. Login to your control panel

2. Click File Manager

3. Type .FormMail.conf in the Create/Edit File box (if it does not exist, click ok to create it, and then paste the text below into the editing space)

.

In .FormMail.conf file you have the following settings by default):

[allow_mail_to]
username@yourdomain.com
[/allow_mail_to]

1. Add a recipient to your form (html page) right after the form tag
like this:
<input type="hidden" name="recipient" value="myemailaddress@yourdomain.com">

2. The recipient you use in your form's recipient field must also be
listed in the .FormMail.conf file's [allow_mail_to] list like this:

[allow_mail_to]
emailaddress@yourdomain.com
[/allow_mail_to]



Another option is to use a recipient alias so that the email address
is not listed in the html form (where it can be harvested by spammers.)

Here's the default info in the .FormMail.conf file alias section:

[recipient_alias]
username=>username@yourdomain.com
[/recipient_alias]

Change it to this:

[recipient_alias]
me=>myemailaddress@yourdomain.com
[/recipient_alias]

And change the recipient in your form to ="celebrating" like this:
<input type="hidden" name="recipient" value="me">
(instead of the one above)

That way the forms will be sent tomyemailaddress@yourdomain.com but
the email address won't be harvestable by spammers.

.

Note:  anything with a # before it is part of the instructions. Anything without a # before it is an actual part of the code.

 

#### 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 recieve 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 e-mail address.

[postmaster]
info@paulawalla.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]
info@paulawalla.com
paulawalla.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 e-mail 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]
inf=>info@paulawalla.com
lorio=>lori@paulawalla.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]

 

Copyright © 2003-2010 Hosting Connecticut, LLC.
Resellers of Hosting Connecticut, LLC. may reproduce this manual on their sites.