Register() && $confirm = $adMangler->SetConfirmationKey()) { $showMessage1 = true; $emailMessage = "You or some one has recently signed up for an AdMangler account on the website ".$_SERVER['SERVER_NAME'].".\n "; $emailMessage .= "If you would like to activate this account you can use the following link to activate your account\n\n"; $emailMessage .= "http://" . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'] . "&key=" . $confirm['key'] ."\n\n"; $emailMessage .= "If you did not request an account then there is no need to do anything.\n Thanks!"; mail($confirm['email'], "Activate Your AdMangler Account on ".$_SERVER['SERVER_NAME']."!", $emailMessage); } else if (!$reg) echo "
An email has been sent to the email provided during registration!
You must follow the instructions in this email to activate your account.
Your AdMangler account has been activated! You may now login.