Contact Form

Contact Form Address Configuration

Contact form uses a set of alias (the @Aliases variable) to allow email to be sent. Each alias has two parts: a public name, and a private email address. The address is never shown on the contact form page or in the page source.

Default Configuration

my @Aliases = (
	'administrator',&safeHeader($ENV{'SERVER_ADMIN'}),
	# The following aliases are commented out examples, remove the leading # sign to use them
	#'webmaster','webmaster@yoursite.tld',
	#'postmaster','postmaster@yoursite.tld',
	#'two people','webmaster@yoursite.tld,postmaster@yoursite.tld',
);
The lines that start with # are commented out. In this configuration the form will send email only to the web server administrator (as defined in the web server configuration). It is almost certain that you want to change this.

Just One Person

my @Aliases = (
	'John Doe','johndoe@example.com',
);
In this configuration, only John Doe can get email. Users will not be given a choice to send email to other people.

Choice of Multiple People

my @Aliases = (
	'John Doe','johndoe@example.com',
	'Jane Doe','janedoe@example.com',
	'The Webmaster','webmaster@example.com',
	'Sales Department','sales@example.com',
);
In this configuration, the form can send email to John, Jane, Sales, or Webmaster. Users of the will see a drop down menu from which they can choose one of these four options.

List of Addresses

my @Aliases = (
	'support','johndoe@example.com,janedoe@example.com',
);
A single alias can support a comma separated list of addresses. In this case, an email to support will be sent to both John and Jane.

Copyright (C) 2002-2007 Stephen Ostermiller

ostermiller.org (site index)