File: C:/xampp/htdocs/PBN/Notify.php
<?php
require_once("dbcontroller.php");
$db_handle = new DBController();
$actual_link = "http://$_SERVER[HTTP_HOST]"."/pbn/";
//$toEmail = $_POST["userEmail"].",[email protected]";
$mail=$_GET["email"];
$name=$_GET["name"];
$toEmail = $mail.",[email protected]";
//$toEmail = "[email protected],[email protected]";
$subject = "PBN TOOL User Registration Activation Email";
$content = "Dear ".$name.", \r\n \r\nYour PBN-tool account has activated, Please visit the web site and create a new job to activate the tool function: " . $actual_link ." \r\n \r\nRegards, \r\n \r\nPSA-Tool administrator";
$mailHeaders = "From: [email protected]\r\n";
if(mail($toEmail, $subject, $content, $mailHeaders)) {
//$message = "You have registered and the activation mail is sent to your email. Click the activation link to activate you account.";
$message = "Account notification mail out.";
}
unset($_POST);
?>
<html>
<head>
<title>PHP User Registration Form</title>
<link href="style.css" type="text/css" rel="stylesheet" />
</head>
<body>
<?php if(isset($message)) { ?>
<div class="message"><?php echo $message; ?></div>
<?php } ?>
</body></html>