This page documents the EMAIL_ADDRS configuration setting in FormMail.
Type Of Setting
EMAIL_ADDRS is an OPTIONAL setting, which means...
OPTIONAL : you can change this setting if you need to, but the default valueis fine for most circumstances.
Email address aliases.
You can use EMAIL_ADDRS to create aliases for your email addresses.
You may want to do this to hide actual email addresses and avoid including them literally on your web pages.
For example, instead of using "email@example.com" as a recipient email address in your form, you can create an alias (say "moreinfo") and use that instead.
You can also use an INI file to create email address aliases, but the EMAIL_ADDRS setting requires less setup as you can make the changes in the configuration area of FormMail.
In the EMAIL_ADDRS array you provide keys and values. A key is the alias you want to create and the value is the actual email address(es).
See the examples below to help with constructing your aliases.
$EMAIL_ADDRS = array();
$EMAIL_ADDRS = array('moreinfo' => 'firstname.lastname@example.org');
$EMAIL_ADDRS = array('feedback' => 'email@example.com,firstname.lastname@example.org,email@example.com');
$EMAIL_ADDRS = array( 'support' => 'firstname.lastname@example.org', 'sales' => 'email@example.com', 'ceo' => 'firstname.lastname@example.org' );