\n"; if (!empty($_POST[submit])) { $address = $_POST[address]; $goto = $_POST[goto]; $address_value = $address; $address = $address . "@" . $sessid[domain]; if (empty($address) or empty($goto)) { print "

\n"; print "You will need to fill both fields.\n"; print_footer(); exit; } if (!check_email($address)) { print "

\n"; print "The email address that you have supplied at Alias is not a valid email address, please go back.\n"; print_footer(); exit; } if (!check_email($goto)) { print "

\n"; print "The email address that you have supplied at To is not a valid email address, please go back.\n"; print_footer(); exit; } if ($address_value == "none") { $address = "@" . $sessid[domain]; } $result = db_query ("SELECT * FROM alias WHERE address='$address'"); if ($result[rows] == 1) { print "

\n"; print "This email address already exists, please choose a different one.\n"; print_footer(); exit; } $result = db_query ("INSERT INTO alias (address,goto,domain,create_date,change_date) VALUES('$address','$goto','$sessid[domain]',NOW(),NOW())"); if ($result[rows] == 1) { print "

\n"; print "$address -> $goto has been added to the alias table!\n"; print "

\n"; } else { print "

\n"; print "Unable to add: $address -> $goto to the alias table!\n"; print_footer(); exit; } } ?> Create a new alias for your domain.

Alias:@
To:Where the mail needs to be send to.
Use "edit" in the overview to add more
then one email address.
If you want to add a catchall enter "none" in the alias field.