Every new account has a default .FormMail.conf file which allows mail to be sent to the account 'username@domainname.com'. Many customers wish to make changes to this setup, and the easiest method is using the File Manager in your control panel. You can also use most any text editor and FTP program - either way will work equally well for this application. If you have any trouble with creating your conf file, please contact support for assistance.
File Manager method:
- You will find the configuration file text at the bottom of this page. Simply select the text with your mouse, right click your mouse and choose 'copy'.
- Once the text is copied, go to your Control Panel main menu, and click on the File Manager icon.
- When the File Manager screen loads, type '.FormMail.conf' (without the quotes) in the text area to the left of 'Create/Edit file', and click 'Create/Edit file' with your mouse.
- When the page loads, right click your mouse and select paste. (If the file is not empty, you already have a configuration file, and can skip this step.)
- After you paste the text, change the 'Size' to 90 so that it will be easier for you to read and edit.
- Scroll through the text of the configuration file, being sure to update the values to suite your needs.
At the very least, you will need to enter your domain name (without the 'www.') in between the 'allow_mail_to' lines, and put your e-mail address in between the 'postmaster' lines.
Once your changes have been made, click the 'Save' button.
At this point, you can send e-mail via forms in your html files to any e-mail address set up on your domain. If you would like to send e-mail to other addresses other than ones set up on your domain, simply add the e-mail addresses in between the 'allow_mail_to' lines of your configuration file. (There is more detailed information explaining this in the actual configuration file. Please read over it and if you have any questions, please contact support for assistance.)
NOTE: although you will not be able to see your configuration file in the File Manager, it is there. Because it begins with a 'dot' (.), it is considered hidden. You can always access it simply by typing the name in the text area manually.
BEGIN Example .FormMail.conf File:
#### 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 emailscannot be delivered, and should
# be set to your e-mail 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@yahoo.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]
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 = http://yourdomain.com/css/site.css
#
# This may be left blank.
#
[style]
/css/site.css
[/style]
|