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

$Aliases = [
	'contact_administrator_name', 'contact_administrator_email',

	#### The following aliases are commented out examples, remove the leading # sign to use them

	## A simple example of mail sent to John Smith
	#'John Smith','john@yoursite.tld',

	## Here both the name and the email are translated.
	## Translations can be edited in the translations section.

	## Just the name is translated

	## A mailing list with multiple addresses separated by commas
	#'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

$Aliases = [
	'John Doe','',
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

$Aliases = [
	'John Doe','',
	'Jane Doe','',
	'The Webmaster','',
	'Sales Department','',
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

$Aliases = [
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-2014 Stephen Ostermiller (site index)